forked from j-guyon/CommandSchedulerBundle
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: drop support for symfony 6.3 (#88)
* feat: drop support for symfony 6.3
- Loading branch information
1 parent
74fdada
commit fa9f4a8
Showing
7 changed files
with
48 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
continue-on-error: true | ||
strategy: | ||
matrix: | ||
symfony-version: ['7.0.x@dev'] | ||
symfony-version: ['7.1.x@dev'] | ||
steps: | ||
- name: 'Checkout code' | ||
uses: actions/checkout@v4 | ||
|
@@ -21,7 +21,7 @@ jobs: | |
uses: shivammathur/[email protected] | ||
with: | ||
coverage: none | ||
php-version: '8.2' | ||
php-version: '8.3' | ||
tools: composer:v2 | ||
extensions: pcov, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite | ||
ini-values: date.timezone=UTC | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,17 @@ | ||
#!/usr/bin/env php | ||
/** @noinspection PhpUnhandledExceptionInspection */<?php | ||
<?php | ||
|
||
// used from symfony 5.2.2 | ||
use App\Tests\App\AppKernel; | ||
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'; | ||
|
||
// custom: changed path | ||
require dirname(__DIR__).'/../vendor/autoload.php'; | ||
return function (array $context) { | ||
$kernel = new AppKernel($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']) { | ||
if (true) { | ||
umask(0000); | ||
|
||
if (class_exists(Debug::class)) { | ||
Debug::enable(); | ||
} | ||
} | ||
|
||
/** @noinspection PhpFullyQualifiedNameUsageInspection */ | ||
#$kernel = new \App\Tests\App\AppKernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); | ||
$kernel = new \App\Tests\App\AppKernel(); | ||
|
||
$application = new Application($kernel); | ||
$application->run($input); | ||
return new Application($kernel); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters