comparison vendor/symfony/routing/Loader/AnnotationDirectoryLoader.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
9 * file that was distributed with this source code. 9 * file that was distributed with this source code.
10 */ 10 */
11 11
12 namespace Symfony\Component\Routing\Loader; 12 namespace Symfony\Component\Routing\Loader;
13 13
14 use Symfony\Component\Config\Resource\DirectoryResource;
14 use Symfony\Component\Routing\RouteCollection; 15 use Symfony\Component\Routing\RouteCollection;
15 use Symfony\Component\Config\Resource\DirectoryResource;
16 16
17 /** 17 /**
18 * AnnotationDirectoryLoader loads routing information from annotations set 18 * AnnotationDirectoryLoader loads routing information from annotations set
19 * on PHP classes and methods. 19 * on PHP classes and methods.
20 * 20 *
78 { 78 {
79 if ('annotation' === $type) { 79 if ('annotation' === $type) {
80 return true; 80 return true;
81 } 81 }
82 82
83 if ($type || !is_string($resource)) { 83 if ($type || !\is_string($resource)) {
84 return false; 84 return false;
85 } 85 }
86 86
87 try { 87 try {
88 return is_dir($this->locator->locate($resource)); 88 return is_dir($this->locator->locate($resource));