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

Skip to content

[DI] PhpDumper does not work standalone #26388

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
curry684 opened this issue Mar 3, 2018 · 0 comments
Closed

[DI] PhpDumper does not work standalone #26388

curry684 opened this issue Mar 3, 2018 · 0 comments

Comments

@curry684
Copy link
Contributor

curry684 commented Mar 3, 2018

Q A
Bug report? yes
Symfony version 4.0.5

Building a completely empty application with just the DI component loaded, running it barebones in the SSCCE:

$builder = new ContainerBuilder();
$builder->compile();

$dumper = new PhpDumper($builder);
echo $dumper->dump();

This terminates with:

Uncaught error: Class 'Symfony\Component\Config\Resource\ClassExistenceResource' not found in <...>/ContainerBuilder.php:330

As Config was never loaded. Likely the DI component should just explicitly depend on the Config component itself these days.

fabpot added a commit that referenced this issue Mar 5, 2018
This PR was merged into the 3.4 branch.

Discussion
----------

 [DI] Skip resource tracking if disabled

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #26388
| License       | MIT
| Doc PR        | n/a

Commits
-------

0b748fa [DI] Skip resource tracking if disabled
@fabpot fabpot closed this as completed Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants