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
thrownew \LogicException(sprintf('You cannot use the "%s" if the ExpressionLanguage component is not available. Try running "composer require symfony/expression-language".', __CLASS__));
217
+
thrownew \LogicException(\sprintf('You cannot use the "%s" if the ExpressionLanguage component is not available. Try running "composer require symfony/expression-language".', __CLASS__));
Copy file name to clipboardExpand all lines: ContainerAwareEventManager.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ private function initializeSubscribers(): void
193
193
continue;
194
194
}
195
195
196
-
thrownew \InvalidArgumentException(sprintf('Using Doctrine subscriber "%s" is not allowed. Register it as a listener instead, using e.g. the #[AsDoctrineListener] or #[AsDocumentListener] attribute.', \is_object($listener) ? get_debug_type($listener) : $listener));
196
+
thrownew \InvalidArgumentException(\sprintf('Using Doctrine subscriber "%s" is not allowed. Register it as a listener instead, using e.g. the #[AsDoctrineListener] or #[AsDocumentListener] attribute.', \is_object($listener) ? get_debug_type($listener) : $listener));
if (!$mappingConfig['type'] || !$mappingConfig['dir'] || !$mappingConfig['prefix']) {
221
-
thrownew \InvalidArgumentException(sprintf('Mapping definitions for Doctrine manager "%s" require at least the "type", "dir" and "prefix" options.', $objectManagerName));
221
+
thrownew \InvalidArgumentException(\sprintf('Mapping definitions for Doctrine manager "%s" require at least the "type", "dir" and "prefix" options.', $objectManagerName));
222
222
}
223
223
224
224
if (!is_dir($mappingConfig['dir'])) {
225
-
thrownew \InvalidArgumentException(sprintf('Specified non-existing directory "%s" as Doctrine mapping source.', $mappingConfig['dir']));
225
+
thrownew \InvalidArgumentException(\sprintf('Specified non-existing directory "%s" as Doctrine mapping source.', $mappingConfig['dir']));
226
226
}
227
227
228
228
if (!\in_array($mappingConfig['type'], ['xml', 'yml', 'php', 'staticphp', 'attribute'])) {
229
-
thrownew \InvalidArgumentException(sprintf('Can only configure "xml", "yml", "php", "staticphp" or "attribute" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. You can register them by adding a new driver to the "%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'_metadata_driver')));
229
+
thrownew \InvalidArgumentException(\sprintf('Can only configure "xml", "yml", "php", "staticphp" or "attribute" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. You can register them by adding a new driver to the "%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'_metadata_driver')));
230
230
}
231
231
}
232
232
@@ -297,8 +297,8 @@ protected function loadCacheDriver(string $cacheName, string $objectManagerName,
thrownew \InvalidArgumentException(sprintf('"%s" is an unrecognized Doctrine cache driver.', $cacheDriver['type']));
325
+
thrownew \InvalidArgumentException(\sprintf('"%s" is an unrecognized Doctrine cache driver.', $cacheDriver['type']));
326
326
}
327
327
328
328
if (!isset($cacheDriver['namespace'])) {
@@ -414,7 +414,7 @@ private function validateAutoMapping(array $managerConfigs): ?string
414
414
}
415
415
416
416
if (null !== $autoMappedManager) {
417
-
thrownew \LogicException(sprintf('You cannot enable "auto_mapping" on more than one manager at the same time (found in "%s" and "%s"").', $autoMappedManager, $name));
417
+
thrownew \LogicException(\sprintf('You cannot enable "auto_mapping" on more than one manager at the same time (found in "%s" and "%s"").', $autoMappedManager, $name));
thrownewInvalidArgumentException(sprintf('Doctrine event listener "%s" must specify the "event" attribute.', $id));
78
+
thrownewInvalidArgumentException(\sprintf('Doctrine event listener "%s" must specify the "event" attribute.', $id));
79
79
}
80
80
foreach ($connectionsas$con) {
81
81
if (!isset($this->connections[$con])) {
82
-
thrownewRuntimeException(sprintf('The Doctrine connection "%s" referenced in service "%s" does not exist. Available connections names: "%s".', $con, $id, implode('", "', array_keys($this->connections))));
82
+
thrownewRuntimeException(\sprintf('The Doctrine connection "%s" referenced in service "%s" does not exist. Available connections names: "%s".', $con, $id, implode('", "', array_keys($this->connections))));
83
83
}
84
84
85
85
if (!isset($managerDefs[$con])) {
@@ -110,7 +110,7 @@ private function addTaggedServices(ContainerBuilder $container): array
@@ -152,7 +152,7 @@ private function getManagerName(ContainerBuilder $container): string
152
152
}
153
153
}
154
154
155
-
thrownewInvalidArgumentException(sprintf('Could not find the manager name parameter in the container. Tried the following parameter names: "%s".', implode('", "', $this->managerParameters)));
155
+
thrownewInvalidArgumentException(\sprintf('Could not find the manager name parameter in the container. Tried the following parameter names: "%s".', implode('", "', $this->managerParameters)));
thrownew \InvalidArgumentException(sprintf('The "$idReader" argument of "%s" must be null when the query cannot be optimized because of composite id fields.', __METHOD__));
44
+
thrownew \InvalidArgumentException(\sprintf('The "$idReader" argument of "%s" must be null when the query cannot be optimized because of composite id fields.', __METHOD__));
Copy file name to clipboardExpand all lines: Form/ChoiceList/IdReader.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ public function getIdValue(?object $object = null): string
83
83
}
84
84
85
85
if (!$this->om->contains($object)) {
86
-
thrownewRuntimeException(sprintf('Entity of type "%s" passed to the choice field must be managed. Maybe you forget to persist it in the entity manager?', get_debug_type($object)));
86
+
thrownewRuntimeException(\sprintf('Entity of type "%s" passed to the choice field must be managed. Maybe you forget to persist it in the entity manager?', get_debug_type($object)));
0 commit comments