Robo\Robo::setContainer PHP 메소드

setContainer() 공개 정적인 메소드

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