application = new Application($kernel); $container = self::$kernel->getContainer(); $this->application->add(new InstallCommand( $container->getParameter('kernel.project_dir'), $container->get('doctrine')->getConnection() )); return $this->application->find('kimai:install'); } }