You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal is to detect errors sooner when users will do something like this:
```php
$containerBuilder->addDefinitions(...);
$container = $containerBuilder->build();
$containerBuilder->addDefinitions([
'foo' => 'bar',
]);
$container->get('foo'); // Exception
```
Definitions (or anything actually) added after the container was created is ignored, but it sometimes can be not obvious.
By "locking" the builder after the container is created (throwing an exception on all modifications) could help.
The goal is to detect errors sooner when users will do something like this:
Definitions (or anything actually) added after the container was created is ignored, but it sometimes can be not obvious.
By "locking" the builder after the container is created (throwing an exception on all modifications) could help.
The text was updated successfully, but these errors were encountered: