bug #29708 [FrameworkBundle] access the container getting it from the kernel (xabbuh)
This PR was submitted for the master branch but it was merged into the 4.1 branch instead (closes #29708).
Discussion
----------
[FrameworkBundle] access the container getting it from the kernel
| Q | A
| ------------- | ---
| Branch? | 4.1
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #29707
| License | MIT
| Doc PR |
Commits
-------
68ea3f1a64
access the container getting it from the kernel
This commit is contained in:
commit
9d6753998c
@ -94,7 +94,7 @@ EOT
|
|||||||
$targetArg = rtrim($input->getArgument('target'), '/');
|
$targetArg = rtrim($input->getArgument('target'), '/');
|
||||||
|
|
||||||
if (!$targetArg) {
|
if (!$targetArg) {
|
||||||
$targetArg = $this->getPublicDirectory($this->getContainer());
|
$targetArg = $this->getPublicDirectory($kernel->getContainer());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_dir($targetArg)) {
|
if (!is_dir($targetArg)) {
|
||||||
|
Reference in New Issue
Block a user