partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit b1b08cf22f09965fa8c3d821b91d5d150eba039f
parent 7d75132be160597e38c916a27893b29cf42b05c8
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed, 25 Nov 2015 18:54:08 +0100

Added setupconsole script for operating on the setup kernel

Diffstat:
Aapp/setupconsole | 27+++++++++++++++++++++++++++
1 file changed, 27 insertions(+), 0 deletions(-)

diff --git a/app/setupconsole b/app/setupconsole @@ -0,0 +1,27 @@ +#!/usr/bin/env php +<?php + +// if you don't want to setup permissions the proper way, just uncomment the following PHP line +// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information +//umask(0000); + +set_time_limit(0); + +require_once __DIR__.'/bootstrap.php.cache'; +require_once __DIR__.'/SetupAppKernel.php'; + +use Symfony\Bundle\FrameworkBundle\Console\Application; +use Symfony\Component\Console\Input\ArgvInput; +use Symfony\Component\Debug\Debug; + +$input = new ArgvInput(); +$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); +$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod'; + +if ($debug) { + Debug::enable(); +} + +$kernel = new SetupAppKernel("setup", $debug); +$application = new Application($kernel); +$application->run($input);