Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd8ff04

Browse files
committed
minor #13240 Escape annotations in comments (cmfcmf)
This PR was merged into the 2.3 branch. Discussion ---------- Escape annotations in comments | Q | A | ------------- | --- | Fixed tickets | --- | Referenced tickets | #13089 | License | MIT Commits ------- 0cb17f3 Escape annotations in comments, refs #13089.
2 parents 7d15c1d + 0cb17f3 commit bd8ff04

File tree

2 files changed

+7
-31
lines changed

2 files changed

+7
-31
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

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

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

src/Symfony/Component/HttpKernel/KernelInterface.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,17 @@ public function getBundle($name, $first = true);
101101
*
102102
* The resource name must follow the following pattern:
103103
*
104-
* @BundleName/path/to/a/file.something
104+
* "@BundleName/path/to/a/file.something"
105105
*
106106
* where BundleName is the name of the bundle
107107
* and the remaining part is the relative path in the bundle.
108108
*
109-
* If $dir is passed, and the first segment of the path is Resources,
109+
* If $dir is passed, and the first segment of the path is "Resources",
110110
* this method will look for a file named:
111111
*
112-
* $dir/BundleName/path/without/Resources
112+
* $dir/<BundleName>/path/without/Resources
113+
*
114+
* before looking in the bundle resource folder.
113115
*
114116
* @param string $name A resource name to locate
115117
* @param string $dir A directory where to look for the resource first

0 commit comments

Comments
 (0)