@@ 40-42 (lines=3) @@ | ||
37 | */ |
|
38 | public function load($resource, $type = null) |
|
39 | { |
|
40 | if (isset($resource[0]) && '@' === $resource[0]) { |
|
41 | $resource = $this->fileLocator->locate($resource); |
|
42 | } |
|
43 | ||
44 | if (!is_dir($resource)) { |
|
45 | throw new \InvalidArgumentException(sprintf('Given resource of type "%s" is no directory.', $resource)); |
|
@@ 69-71 (lines=3) @@ | ||
66 | return false; |
|
67 | } |
|
68 | ||
69 | if (isset($resource[0]) && '@' === $resource[0]) { |
|
70 | $resource = $this->fileLocator->locate($resource); |
|
71 | } |
|
72 | ||
73 | return is_dir($resource); |
|
74 | } |