PHP code example of eimanavicius / cakephp-container-interop
1. Go to this page and download the library: Download eimanavicius/cakephp-container-interop 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/ */
eimanavicius / cakephp-container-interop example snippets
CakePlugin::load('ContainerInterop', array('bootstrap' => true));
Configure::write('Interop\Container\ContainerInterface', 'app/Config/container.php');
// Build container
$container = new SomeServiceContainer();
return $container;