bug #34400 [HttpKernel] collect bundle classes, not paths (nicolas-grekas)
This PR was merged into the 4.4 branch.
Discussion
----------
[HttpKernel] collect bundle classes, not paths
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | Fix #34359
| License | MIT
| Doc PR | -
Commits
-------
7824d75ac3
[HttpKernel] collect bundle classes, not paths
This commit is contained in:
commit
fda36e84b3
|
@ -210,7 +210,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="key">Name</th>
|
<th class="key">Name</th>
|
||||||
<th>Path</th>
|
<th>Class</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
@ -15,7 +15,7 @@ use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpKernel\Kernel;
|
use Symfony\Component\HttpKernel\Kernel;
|
||||||
use Symfony\Component\HttpKernel\KernelInterface;
|
use Symfony\Component\HttpKernel\KernelInterface;
|
||||||
use Symfony\Component\VarDumper\Caster\LinkStub;
|
use Symfony\Component\VarDumper\Caster\ClassStub;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
|
@ -30,7 +30,6 @@ class ConfigDataCollector extends DataCollector implements LateDataCollectorInte
|
||||||
private $kernel;
|
private $kernel;
|
||||||
private $name;
|
private $name;
|
||||||
private $version;
|
private $version;
|
||||||
private $hasVarDumper;
|
|
||||||
|
|
||||||
public function __construct(string $name = null, string $version = null)
|
public function __construct(string $name = null, string $version = null)
|
||||||
{
|
{
|
||||||
|
@ -43,7 +42,6 @@ class ConfigDataCollector extends DataCollector implements LateDataCollectorInte
|
||||||
|
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->version = $version;
|
$this->version = $version;
|
||||||
$this->hasVarDumper = class_exists(LinkStub::class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -82,7 +80,7 @@ class ConfigDataCollector extends DataCollector implements LateDataCollectorInte
|
||||||
|
|
||||||
if (isset($this->kernel)) {
|
if (isset($this->kernel)) {
|
||||||
foreach ($this->kernel->getBundles() as $name => $bundle) {
|
foreach ($this->kernel->getBundles() as $name => $bundle) {
|
||||||
$this->data['bundles'][$name] = $this->hasVarDumper ? new LinkStub($bundle->getPath()) : $bundle->getPath();
|
$this->data['bundles'][$name] = new ClassStub(\get_class($bundle));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->data['symfony_state'] = $this->determineSymfonyState();
|
$this->data['symfony_state'] = $this->determineSymfonyState();
|
||||||
|
|
Reference in New Issue