PHP code example of camspiers / shared-dependency-injection

1. Go to this page and download the library: Download camspiers/shared-dependency-injection 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/ */

    

camspiers / shared-dependency-injection example snippets


use Camspiers\DependencyInjection\SharedContainerFactory;

SharedContainerFactory::reateContainer(
        array(),
        __DIR__ . '/services.yml'
    ),
    'SharedContainer',
    __DIR__
);