8000 [FrameworkBundle] Fix PathPackage CLI usage by lenybernard · Pull Request #10264 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] Fix PathPackage CLI usage #10264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix bad syntax
  • Loading branch information
lenybernard committed Feb 14, 2014
commit a56de86be2397fcfb98e96be55b6ed1c3ad452ad
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class PathPackage extends BasePathPackage
*/
public function __construct(RequestStack $requestStack, $version = null, $format = null)
{
if ($request = $requestStack->getCurrentRequest() instanceof Request) {
$path = $request->getBasePath();
if ($requestStack->getCurrentRequest() instanceof Request) {
$path = $requestStack->getCurrentRequest()->getBasePath();
} else {
$path = "/";
}
Expand Down
0