PHP code example of adamlundrigan / ldc-zf1-di-leaguecontainer
1. Go to this page and download the library: Download adamlundrigan/ldc-zf1-di-leaguecontainer 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/ */
adamlundrigan / ldc-zf1-di-leaguecontainer example snippets
protected function _initContainer()
{
$container = new League\Container\Container();
// Fill your container
return $container;
}
protected function _initContainerResourceInjector()
{
$this->bootstrap('container');
Zend_Controller_Action_HelperBroker::addHelper(
new \LdcZf1DiLeagueContainer\DependencyInjector()
);
}