start() public method

Starts the service container.
public start ( )
Example #1
0
 /**
  * Creates the configuration.
  *
  * @param Container $puli The Puli service container
  */
 public function __construct(Container $puli = null)
 {
     // Start Puli already so that plugins can change the CLI configuration
     $this->puli = $puli ?: new Container(getcwd());
     if (!$this->puli->isStarted()) {
         $this->puli->start();
     }
     parent::__construct();
 }