Robo\Robo::setContainer PHP Method

setContainer() public static method

Sets a new global container.
public static setContainer ( League\Container\ContainerInterface $container )
$container League\Container\ContainerInterface A new container instance to replace the current.
    public static function setContainer(ContainerInterface $container)
    {
        static::$container = $container;
    }

Usage Example

コード例 #1
0
ファイル: CliHelper.php プロジェクト: jjok/Robo
 public function _before(\Codeception\TestCase $test)
 {
     $container = new \League\Container\Container();
     $this->initSeeInOutputTrait($container);
     Robo::setContainer($container);
     $this->setContainer($container);
     $this->getModule('Filesystem')->copyDir(codecept_data_dir() . 'claypit', codecept_data_dir() . 'sandbox');
 }
All Usage Examples Of Robo\Robo::setContainer