-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Symplify not using symfony/http-kernel (#1119)
* trigger CI * upgrade to symplify configs instead of bundles * update config files infos to config files * use ConfigureCallMerginLoaderFactory * remove symfony/http-kernel * remove symplify/phpstan-twig-rules
- Loading branch information
1 parent
1c27c6e
commit 20291b2
Showing
25 changed files
with
256 additions
and
272 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
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
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Core\Config\Loader; | ||
|
||
use Rector\Core\DependencyInjection\Collector\ConfigureCallValuesCollector; | ||
use Rector\Core\DependencyInjection\Loader\ConfigurableCallValuesCollectingPhpFileLoader; | ||
use Symfony\Component\Config\FileLocator; | ||
use Symfony\Component\Config\Loader\DelegatingLoader; | ||
use Symfony\Component\Config\Loader\GlobFileLoader; | ||
use Symfony\Component\Config\Loader\LoaderInterface; | ||
use Symfony\Component\Config\Loader\LoaderResolver; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symplify\SymfonyContainerBuilder\Contract\Config\LoaderFactoryInterface; | ||
|
||
final class ConfigureCallMergingLoaderFactory implements LoaderFactoryInterface | ||
{ | ||
public function __construct( | ||
private ConfigureCallValuesCollector $configureCallValuesCollector | ||
) { | ||
} | ||
|
||
public function create(ContainerBuilder $containerBuilder, string $currentWorkingDirectory): LoaderInterface | ||
{ | ||
$fileLocator = new FileLocator([$currentWorkingDirectory]); | ||
|
||
$loaderResolver = new LoaderResolver([ | ||
new GlobFileLoader($fileLocator), | ||
new ConfigurableCallValuesCollectingPhpFileLoader( | ||
$containerBuilder, | ||
$fileLocator, | ||
$this->configureCallValuesCollector | ||
), | ||
]); | ||
|
||
return new DelegatingLoader($loaderResolver); | ||
} | ||
} |
Oops, something went wrong.