PHP code example of dmitrivereshchagin / yii2-psr-container
1. Go to this page and download the library: Download dmitrivereshchagin/yii2-psr-container library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dmitrivereshchagin / yii2-psr-container example snippets
\Yii::$container->setSingleton(
'Psr\Container\ContainerInterface',
function ($container) {
return new \yii\psr\container\ContainerAdapter($container);
}
);