Skip to content

Commit 97fea31

Browse files
[Serializer] Replace "annotation" wording by "attribute"
1 parent 9884b24 commit 97fea31

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Loader/AttributeClassLoader.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ public function setRouteAnnotationClass(string $class)
109109
}
110110

111111
/**
112-
* Loads from annotations from a class.
113-
*
114112
* @throws \InvalidArgumentException When route can't be parsed
115113
*/
116114
public function load(mixed $class, string $type = null): RouteCollection
@@ -121,7 +119,7 @@ public function load(mixed $class, string $type = null): RouteCollection
121119

122120
$class = new \ReflectionClass($class);
123121
if ($class->isAbstract()) {
124-
throw new \InvalidArgumentException(sprintf('Annotations from class "%s" cannot be read as it is abstract.', $class->getName()));
122+
throw new \InvalidArgumentException(sprintf('Attributes from class "%s" cannot be read as it is abstract.', $class->getName()));
125123
}
126124

127125
$this->hasDeprecatedAnnotations = false;

Loader/AttributeFileLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class AttributeFileLoader extends FileLoader
3030
public function __construct(FileLocatorInterface $locator, AttributeClassLoader $loader)
3131
{
3232
if (!\function_exists('token_get_all')) {
33-
throw new \LogicException('The Tokenizer extension is required for the routing annotation loaders.');
33+
throw new \LogicException('The Tokenizer extension is required for the routing attribute loader.');
3434
}
3535

3636
parent::__construct($locator);
@@ -39,7 +39,7 @@ public function __construct(FileLocatorInterface $locator, AttributeClassLoader
3939
}
4040

4141
/**
42-
* Loads from annotations from a file.
42+
* Loads from attributes from a file.
4343
*
4444
* @throws \InvalidArgumentException When the file does not exist or its routes cannot be parsed
4545
*/

0 commit comments

Comments
 (0)