I am learning Yii2 concepts and writing an application based on it.
Until things went too far I’d like to understand the idea of Application components/Service locators.
I’m using few external libraries like Guzzle and PHPExcel. Also I’m planning to add more libraries which will be used in different places of application.
Should I register those libraries as application components as described in guides?
What is better:
$client = new \GuzzleHttp\Client;