getContainer() public method

public getContainer ( ) : PhpSpec\ServiceContainer
return PhpSpec\ServiceContainer
 private function setupPrompter()
 {
     $this->prompter = new Prompter();
     $this->application->getContainer()->set('console.prompter', $this->prompter);
 }
 private function setupReRunner()
 {
     $this->reRunner = new ReRunner();
     $this->application->getContainer()->set('process.rerunner.platformspecific', $this->reRunner);
 }
示例#3
0
 /**
  * @param Application $application
  */
 public function __construct(Application $application)
 {
     $this->application = $application;
     $this->reRunner = new LoggingReRunner();
     $this->application->getContainer()->set('process.rerunner.platformspecific', $this->reRunner);
 }