src/Extension.php
public function load(ServiceContainer $container, array $params)
    {
        $container->define(
            'ecomdev.phpspec.magento_di_adapter.vfs',
            $this->vfsFactory()
        );

        $container->define(
            'ecomdev.phpspec.magento_di_adapter.code_generator.io',
            $this->ioFactory()
        );

        $container->define(
            'ecomdev.phpspec.magento_di_adapter.code_generator.defined_classes',
            $this->simplifiedDefinedClassesFactory()
        );

        $container->define(
            'ecomdev.phpspec.magento_di_adapter.parameter_validator',
            $this->parameterValidatorFactory()
        );

        $container->define(
            'runner.maintainers.ecomdev_magento_collaborator',
            $this->collaboratorMaintainerFactory(),
            ['runner.maintainers']
        );
    }
public function load(ServiceContainer $container, array $params)
    {
        $container->define(
            'ecomdev.phpspec.magento_di_adapter.vfs',
            $this->vfsFactory()
        );

        $container->define(
            'ecomdev.phpspec.magento_di_adapter.code_generator.io',
            $this->ioFactory()
        );

        $container->define(
            'ecomdev.phpspec.magento_di_adapter.code_generator.defined_classes',
            $this->simplifiedDefinedClassesFactory()
        );

        $container->define(
            'ecomdev.phpspec.magento_di_adapter.parameter_validator',
            $this->parameterValidatorFactory()
        );

        $container->define(
            'runner.maintainers.ecomdev_magento_collaborator',
            $this->collaboratorMaintainerFactory(),
            ['runner.maintainers']
        );
    }
public function load ( ServiceContainer $ container , array $ params ) { $ container -> define ( 'ecomdev.phpspec.magento_di_adapter.vfs' , $ this -> vfsFactory ( ) ) ; $ container -> define ( 'ecomdev.phpspec.magento_di_adapter.code_generator.io' , $ this -> ioFactory ( ) ) ; $ container -> define ( 'ecomdev.phpspec.magento_di_adapter.code_generator.defined_classes' , $ this -> simplifiedDefinedClassesFactory ( ) ) ; $ container -> define ( 'ecomdev.phpspec.magento_di_adapter.parameter_validator' , $ this -> parameterValidatorFactory ( ) ) ; $ container -> define ( 'runner.maintainers.ecomdev_magento_collaborator' , $ this -> collaboratorMaintainerFactory ( ) , [ 'runner.maintainers' ] ) ; }
Load collaborator into PHPSpec ServiceContainer

@param ServiceContainer $container
Load collaborator into PHPSpec ServiceContainer