public function __construct() { $appKernel = new AppKernel('dev', true); $appKernel->boot(); $this->container = $appKernel->getContainer(); parent::__construct('commit-msg'); }