Puli\Manager\Api\Container::isStarted PHP Метод

isStarted() публичный Метод

Returns whether the service container is started.
public isStarted ( ) : boolean
Результат boolean Returns `true` if the container is started and `false` otherwise.
    public function isStarted()
    {
        return $this->started;
    }

Usage 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();
 }