Skip to content

Commit

Permalink
SUPPORT-86535 - legacy 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Gaidoba committed Nov 17, 2023
1 parent e82c81a commit a4585cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function load(array $configs, ContainerBuilder $container)
$config = $this->processConfiguration($configuration, $configs);

$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$prefix = Kernel::MAJOR_VERSION <= 4 ? 'legacy_' : '';
$prefix = Kernel::MAJOR_VERSION <= 3 ? 'legacy_' : '';
$loader->load($prefix . 'services.xml');

}
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class FunctionalTestCase extends TestCase
*/
protected function setUpContainer($testCase, $commonFile = 'common.yml')
{
$prefix = Kernel::MAJOR_VERSION <= 4 ? 'legacy_' : '';
$prefix = Kernel::MAJOR_VERSION <= 3 ? 'legacy_' : '';
$this->kernel = new TestKernel($testCase, $prefix . $commonFile);
$this->kernel->boot();
return $this->kernel->getContainer();
Expand Down

0 comments on commit a4585cd

Please sign in to comment.