mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 08:50:50 +00:00
README: remove symfony config, moved to rector-symfony
This commit is contained in:
parent
c27fc4c823
commit
514a8b0513
21
README.md
21
README.md
|
@ -146,7 +146,7 @@ vendor/bin/rector process src
|
|||
|
||||
<br>
|
||||
|
||||
## Full Config Configuration
|
||||
## Configuration
|
||||
|
||||
```php
|
||||
// rector.php
|
||||
|
@ -171,25 +171,6 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
|||
};
|
||||
```
|
||||
|
||||
### Symfony Container
|
||||
|
||||
To work with some Symfony rules, you now need to link your container XML file
|
||||
|
||||
```php
|
||||
// rector.php
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
|
||||
$parameters->set(
|
||||
Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER,
|
||||
__DIR__ . '/var/cache/dev/AppKernelDevDebugContainer.xml'
|
||||
);
|
||||
};
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
## How to Contribute
|
||||
|
|
Loading…
Reference in New Issue
Block a user