8000 [FrameworkBundle] Fix Descriptor throwing on non existent parent by GuilhemN · Pull Request #30294 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] Fix Descriptor throwing on non existent parent #30294

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

Merged
merged 1 commit into from
Feb 20, 2019
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Symfony\Bundle\FrameworkBundle\Console\Descriptor;

use Symfony\Component\Config\Resource\ClassExistenceResource;
use Symfony\Component\Console\Descriptor\DescriptorInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\Alias;
Expand Down Expand Up @@ -292,6 +293,11 @@ public static function getClassDescription(string $class, string &$resolvedClass
{
$resolvedClass = $class;
try {
$resource = new ClassExistenceResource($class, false);

// isFresh() will explode ONLY if a parent class/trait does not exist
$resource->isFresh(0);

$r = new \ReflectionClass($class);
$resolvedClass = $r->name;

Expand Down
0