Skip to content

Commit

Permalink
[DependencyInjection] fix preloading
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Nov 17, 2021
1 parent 00894fb commit aa56227
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dumper/PhpDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class %s extends {$options['class']}
}
require $autoloadFile;
(require __DIR__.'/Container{$hash}/{$options['class']}.php')->set(\\Container{$hash}\\{$options['class']}::class, null);
(require __DIR__.'/{$options['class']}.php')->set(\\Container{$hash}\\{$options['class']}::class, null);
$preloadedFiles
\$classes = [];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/php/services10_as_files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
}

require dirname(__DIR__, %d).'%svendor/autoload.php';
(require __DIR__.'/Container%s/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);
(require __DIR__.'/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);
require __DIR__.'/Container%s/getClosureService.php';

$classes = [];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/php/services9_as_files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
}

require dirname(__DIR__, %d).'%svendor/autoload.php';
(require __DIR__.'/Container%s/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);
(require __DIR__.'/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);
require __DIR__.'/Container%s/getThrowingOneService.php';
require __DIR__.'/Container%s/getTaggedIteratorService.php';
require __DIR__.'/Container%s/getServiceFromStaticMethodService.php';
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/php/services9_inlined_factories.txt
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
}

require dirname(__DIR__, %d).'%svendor/autoload.php';
(require __DIR__.'/Container%s/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);
(require __DIR__.'/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);

$classes = [];
$classes[] = 'Bar\FooClass';
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/php/services9_lazy_inlined_factories.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
}

require dirname(__DIR__, %d).'%svendor/autoload.php';
(require __DIR__.'/Container%s/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);
(require __DIR__.'/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);

$classes = [];
$classes[] = 'Bar\FooClass';
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/php/services_non_shared_lazy_as_files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
}

require dirname(__DIR__, %d).'%svendor/autoload.php';
(require __DIR__.'/Container%s/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);
(require __DIR__.'/ProjectServiceContainer.php')->set(\Container%s\ProjectServiceContainer::class, null);
require __DIR__.'/Container%s/proxy.php';
require __DIR__.'/Container%s/getNonSharedFooService.php';

Expand Down

0 comments on commit aa56227

Please sign in to comment.