How to deal with patched ContainerConfigurator
on end project's side?
#7035
-
Rector patches <?php
declare(strict_types=1);
namespace Foo\Rector\Sets;
use Foo\Rector\Rule\SomeRule;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services
->set(SomeRule::class)
// Method 'configure' not found in \Symfony\Component\DependencyInjection\Loader\Configurator\ServiceConfigurator
->configure([])
;
}; When prefixed (patched) How to properly deal with it? Is it possible to re-work Rector architecture to provide valid API? As far as I understand |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
The only way could improve this, is if the If you find a better way without breaking current API, I'm all ears. |
Beta Was this translation helpful? Give feedback.
-
Your idea took me to a new univers of options 😃 👍 Final solution could be custom class with own method: |
Beta Was this translation helpful? Give feedback.
Your idea took me to a new univers of options 😃 👍
Final solution could be custom class with own method:
rectorphp/rector-src#2019