isStarted() public method

Returns whether the service container is started.
public isStarted ( ) : boolean
return boolean Returns `true` if the container is started and `false` otherwise.
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();
 }