]> git.immae.eu Git - github/wallabag/wallabag.git/blame - bin/console
Add Sentry support
[github/wallabag/wallabag.git] / bin / console
CommitLineData
93fd4692
NL
1#!/usr/bin/env php
2<?php
3
5c895a7f
JB
4use Symfony\Bundle\FrameworkBundle\Console\Application;
5use Symfony\Component\Console\Input\ArgvInput;
6use Symfony\Component\Debug\Debug;
7
93fd4692 8// if you don't want to setup permissions the proper way, just uncomment the following PHP line
6fc95673
JB
9// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
10// for more information
93fd4692
NL
11//umask(0000);
12
13set_time_limit(0);
14
6fc95673 15require __DIR__.'/../vendor/autoload.php';
93fd4692
NL
16
17$input = new ArgvInput();
6fc95673
JB
18$env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev', true);
19$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption('--no-debug', true) && $env !== 'prod';
93fd4692
NL
20
21if ($debug) {
22 Debug::enable();
23}
24
25$kernel = new AppKernel($env, $debug);
26$application = new Application($kernel);
27$application->run($input);