Skip to content

Commit cb3e278

Browse files
committed
Merge branch '2.6' into 2.7
* 2.6: use Table instead of the deprecated TableHelper [2.3] fix failing test fixed typo Escape annotations in comments, refs #13089. [2.3] missing cleanup for legacy test add missing param names to @param annotation Improve the composer root version setting on Travis use Table instead of the deprecated TableHelper Conflicts: src/Symfony/Bundle/FrameworkBundle/composer.json
2 parents 6846cf4 + 239493a commit cb3e278

File tree

2 files changed

+7
-31
lines changed

2 files changed

+7
-31
lines changed

Kernel.php

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -251,35 +251,9 @@ public function getBundle($name, $first = true)
251251
}
252252

253253
/**
254-
* Returns the file path for a given resource.
254+
* {@inheritDoc}
255255
*
256-
* A Resource can be a file or a directory.
257-
*
258-
* The resource name must follow the following pattern:
259-
*
260-
* @<BundleName>/path/to/a/file.something
261-
*
262-
* where BundleName is the name of the bundle
263-
* and the remaining part is the relative path in the bundle.
264-
*
265-
* If $dir is passed, and the first segment of the path is "Resources",
266-
* this method will look for a file named:
267-
*
268-
* $dir/<BundleName>/path/without/Resources
269-
*
270-
* before looking in the bundle resource folder.
271-
*
272-
* @param string $name A resource name to locate
273-
* @param string $dir A directory where to look for the resource first
274-
* @param bool $first Whether to return the first path or paths for all matching bundles
275-
*
276-
* @return string|array The absolute path of the resource or an array if $first is false
277-
*
278-
* @throws \InvalidArgumentException if the file cannot be found or the name is not valid
279-
* @throws \RuntimeException if the name contains invalid/unsafe
280-
* @throws \RuntimeException if a custom resource is hidden by a resource in a derived bundle
281-
*
282-
* @api
256+
* @throws \RuntimeException if a custom resource is hidden by a resource in a derived bundle
283257
*/
284258
public function locateResource($name, $dir = null, $first = true)
285259
{

KernelInterface.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,17 @@ public function getBundle($name, $first = true);
103103
*
104104
* The resource name must follow the following pattern:
105105
*
106-
* @BundleName/path/to/a/file.something
106+
* "@BundleName/path/to/a/file.something"
107107
*
108108
* where BundleName is the name of the bundle
109109
* and the remaining part is the relative path in the bundle.
110110
*
111-
* If $dir is passed, and the first segment of the path is Resources,
111+
* If $dir is passed, and the first segment of the path is "Resources",
112112
* this method will look for a file named:
113113
*
114-
* $dir/BundleName/path/without/Resources
114+
* $dir/<BundleName>/path/without/Resources
115+
*
116+
* before looking in the bundle resource folder.
115117
*
116118
* @param string $name A resource name to locate
117119
* @param string $dir A directory where to look for the resource first

0 commit comments

Comments
 (0)