/** * Creates the configuration. * * @param Puli $puli The Puli service container. */ public function __construct(Puli $puli = null) { // Start Puli already so that plugins can change the CLI configuration $this->puli = $puli ?: new Puli(getcwd()); if (!$this->puli->isStarted()) { $this->puli->start(); } parent::__construct(); }
/** * Creates the configuration. * * @param Container $container The service container (only to be injected during tests) */ public function __construct(Container $container = null) { if (null === $container) { $parameters = []; $parameters['current_dir'] = getcwd() . '/'; $parameters['dancer_directory'] = null; $container = new Container($parameters); } $this->container = $container; parent::__construct(); }
public function __construct(array $settings = [], string $name = null, string $version = null) { parent::__construct($name, $version); $this->settings = $settings; }