public __construct ( Pagekit\Application $container, string $name = 'UNKNOWN', $version = 'UNKNOWN' ) | ||
$container | Pagekit\Application | |
$name | string |
public function __construct(Container $container, $name = 'UNKNOWN', $version = 'UNKNOWN')
{
parent::__construct($name, $version);
$this->setAutoExit(false);
$this->container = $container;
if (isset($container['events'])) {
$container['events']->trigger('console.init', [$this]);
}
}