Skip to content

Commit 03e731a

Browse files
Merge branch '6.4' into 7.0
* 6.4: [Serializer] Replace "annotation" wording by "attribute"
2 parents 37d5bc1 + 97fea31 commit 03e731a

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
@@ -69,8 +69,6 @@ public function setRouteAnnotationClass(string $class): void
6969
}
7070

7171
/**
72-
* Loads from annotations from a class.
73-
*
7472
* @throws \InvalidArgumentException When route can't be parsed
7573
*/
7674
public function load(mixed $class, string $type = null): RouteCollection
@@ -81,7 +79,7 @@ public function load(mixed $class, string $type = null): RouteCollection
8179

8280
$class = new \ReflectionClass($class);
8381
if ($class->isAbstract()) {
84-
throw new \InvalidArgumentException(sprintf('Annotations from class "%s" cannot be read as it is abstract.', $class->getName()));
82+
throw new \InvalidArgumentException(sprintf('Attributes from class "%s" cannot be read as it is abstract.', $class->getName()));
8583
}
8684

8785
$globals = $this->getGlobals($class);

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)