Skip to content

Commit

Permalink
TASK: Move away from symfony/http-kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Apr 7, 2023
1 parent aafc981 commit 2e55681
Show file tree
Hide file tree
Showing 6 changed files with 354 additions and 626 deletions.
11 changes: 7 additions & 4 deletions bin/surf
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@
*/

use SelfUpdate\SelfUpdateCommand;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
use TYPO3\Surf\Cli\Symfony\ConsoleApplication;
use TYPO3\Surf\Cli\Symfony\ConsoleKernel;

requireAutoloader();

$kernel = new \TYPO3\Surf\Cli\Symfony\ConsoleKernel('prod', false);

$kernel = new ConsoleKernel('prod');
$kernel->boot();
/** @var Container $container */
$container = $kernel->getContainer();

/** @var ConsoleApplication $application */
$application = $container->get(\TYPO3\Surf\Cli\Symfony\ConsoleApplication::class);
$application = $container->get(ConsoleApplication::class);
$application->add(new SelfUpdateCommand('TYPO3 Surf', $application->getVersion(), 'typo3/surf'));
$application->run();

Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"symfony/console": "^5.0",
"symfony/dependency-injection": "^5.0",
"symfony/finder": "^5.1",
"symfony/http-kernel": "^5.0",
"symfony/options-resolver": "^5.0",
"symfony/process": "^5.0",
"webmozart/assert": "^1.9"
Expand Down

0 comments on commit 2e55681

Please sign in to comment.