From ce4cf471b9db43cfccb300bb92716315a99a2e16 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Thu, 19 Oct 2017 19:10:28 -0400 Subject: [PATCH] Improving annotation loader message --- .../Component/Config/Exception/FileLoaderLoadException.php | 2 +- .../Config/Tests/Exception/FileLoaderLoadExceptionTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Config/Exception/FileLoaderLoadException.php b/src/Symfony/Component/Config/Exception/FileLoaderLoadException.php index 564f75ce60..a19069a6ae 100644 --- a/src/Symfony/Component/Config/Exception/FileLoaderLoadException.php +++ b/src/Symfony/Component/Config/Exception/FileLoaderLoadException.php @@ -64,7 +64,7 @@ class FileLoaderLoadException extends \Exception } elseif (null !== $type) { // maybe there is no loader for this specific type if ('annotation' === $type) { - $message .= ' Make sure annotations are enabled.'; + $message .= ' Make sure annotations are installed and enabled.'; } else { $message .= sprintf(' Make sure there is a loader supporting the "%s" type.', $type); } diff --git a/src/Symfony/Component/Config/Tests/Exception/FileLoaderLoadExceptionTest.php b/src/Symfony/Component/Config/Tests/Exception/FileLoaderLoadExceptionTest.php index 7c5e167c44..8363084c19 100644 --- a/src/Symfony/Component/Config/Tests/Exception/FileLoaderLoadExceptionTest.php +++ b/src/Symfony/Component/Config/Tests/Exception/FileLoaderLoadExceptionTest.php @@ -31,7 +31,7 @@ class FileLoaderLoadExceptionTest extends TestCase public function testMessageCannotLoadResourceWithAnnotationType() { $exception = new FileLoaderLoadException('resource', null, null, null, 'annotation'); - $this->assertEquals('Cannot load resource "resource". Make sure annotations are enabled.', $exception->getMessage()); + $this->assertEquals('Cannot load resource "resource". Make sure annotations are installed and enabled.', $exception->getMessage()); } public function testMessageCannotImportResourceFromSource()