Skip to content

Commit

Permalink
Symfony 5.3 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
cesurapp committed May 31, 2021
1 parent b0d6ae0 commit ac3682a
Show file tree
Hide file tree
Showing 69 changed files with 3,471 additions and 1,057 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

###> symfony/framework-bundle ###
APP_ENV=prod
APP_SECRET=52a9ee6241c958598f23df444ffdb03c
APP_SECRET=52a1ee64413958598f23df434f6db03c
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
Expand Down Expand Up @@ -33,5 +33,5 @@ MAILER_FROM_NAME=pdAdmin
###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=d2ec24ea6a5bdc1a79fff1aac2478368
JWT_PASSPHRASE=cb9f4fd8d7a91c8c90f8337e59224408
###< lexik/jwt-authentication-bundle ###
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ node_modules
.DS_Store
npm-debug.log
yarn-error.log
###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
###< phpunit/phpunit ###

###> lexik/jwt-authentication-bundle ###
/config/jwt/*.pem
Expand Down
40 changes: 7 additions & 33 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,15 @@

use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\ErrorHandler\Debug;

if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}

set_time_limit(0);
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';

require dirname(__DIR__).'/vendor/autoload.php';
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);

if (!class_exists(Application::class) || !class_exists(Dotenv::class)) {
throw new LogicException('You need to add "symfony/framework-bundle" and "symfony/dotenv" as Composer dependencies.');
}

$input = new ArgvInput();
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
}

if ($input->hasParameterOption('--no-debug', true)) {
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
}

(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');

if ($_SERVER['APP_DEBUG']) {
umask(0000);

if (class_exists(Debug::class)) {
Debug::enable();
}
}

$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$application = new Application($kernel);
$application->run($input);
return new Application($kernel);
};
13 changes: 0 additions & 13 deletions bin/phpunit

This file was deleted.

10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"homepage": "https://github.com/appaydin"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0.0",
"ext-ctype": "*",
Expand All @@ -20,14 +22,14 @@
"appaydin/pd-activity": "^1.0",
"appaydin/pd-api": "^1.0",
"appaydin/pd-menu": "3.*",
"appaydin/pd-user": "3.*",
"appaydin/pd-user": "^3.0",
"appaydin/pd-widget": "3.*",
"beberlei/doctrineextensions": "1.*",
"doctrine/doctrine-bundle": "^2.3",
"doctrine/doctrine-migrations-bundle": "^3.1",
"doctrine/orm": "^2.8",
"gregwar/image": "^2.1",
"knplabs/knp-paginator-bundle": "5.*",
"knplabs/knp-paginator-bundle": "dev-master",
"sensio/framework-extra-bundle": "5.*",
"sonata-project/exporter": "^2.6",
"symfony/asset": "5.*",
Expand All @@ -36,9 +38,11 @@
"symfony/flex": "1.*",
"symfony/form": "5.*",
"symfony/framework-bundle": "5.*",
"symfony/intl": "5.3.*",
"symfony/mailer": "5.*",
"symfony/messenger": "5.*",
"symfony/monolog-bundle": "3.*",
"symfony/runtime": "5.3.*",
"symfony/security-bundle": "5.*",
"symfony/translation": "5.*",
"symfony/twig-bundle": "5.*",
Expand Down Expand Up @@ -105,7 +109,7 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.2.*"
"require": "5.3.*"
}
}
}
Loading

0 comments on commit ac3682a

Please sign in to comment.