Skip to content

Commit

Permalink
EZP-31220: Migrated codebase to Symfony 5 (#15)
Browse files Browse the repository at this point in the history
* Updated dependencies in composer.json

* Changed kernel.root_dir -> kernel.project_dir

* Fixed Process initialization
  • Loading branch information
webhdx authored Mar 18, 2020
1 parent 26590a0 commit f3fb7fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
},
"require": {
"php": "^7.3",
"symfony/config": "^4.3",
"symfony/dependency-injection": "^4.3",
"symfony/filesystem": "^4.3",
"symfony/finder": "^4.3",
"symfony/http-kernel": "^4.3"
"symfony/config": "^5.0",
"symfony/dependency-injection": "^5.0",
"symfony/filesystem": "^5.0",
"symfony/finder": "^5.0",
"symfony/http-kernel": "^5.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.15",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
}
}

protected function execute(InputInterface $input, OutputInterface $output): void
protected function execute(InputInterface $input, OutputInterface $output): int
{
$timeout = $input->getOption('timeout');
$env = $input->getOption('env');
Expand All @@ -55,7 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void

$debugFormatter = $this->getHelper('debug_formatter');

$process = new Process(
$process = Process::fromShellCommandline(
$yarnEncoreCommand,
null,
null,
Expand Down Expand Up @@ -85,5 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void
$process->isSuccessful()
)
);

return $process->getExitCode();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('services.yaml');

$bundlesMetadata = $container->getParameter('kernel.bundles_metadata');
$rootPath = \dirname($container->getParameter('kernel.root_dir')) . '/';
$rootPath = $container->getParameter('kernel.project_dir') . '/';
$targetPath = 'var/encore';

foreach (self::CONFIG_NAMES as $configName) {
Expand Down

0 comments on commit f3fb7fc

Please sign in to comment.