PHP code example of roave / behat-psr11extension
1. Go to this page and download the library: Download roave/behat-psr11extension 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/ */
roave / behat-psr11extension example snippets
declare(strict_types=1);
use Laminas\ServiceManager\Config;
use Laminas\ServiceManager\ServiceManager;
// Load configuration
$config = config
$container->setService('config', $config);
return $container;
declare(strict_types=1);
$container = $container->get('Whatever\Service\Name'));
yaml
extensions:
Roave\BehatPsrContainer\PsrContainerExtension:
container: 'config/container.php'