Skip to content
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

[DI] Skip resource tracking if disabled #26393

Merged
merged 1 commit into from
Mar 5, 2018
Merged

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Mar 4, 2018

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

$resource = new ClassExistenceResource($class, false);
$classReflector = $resource->isFresh(0) ? false : new \ReflectionClass($class);
} else {
$classReflector = new \ReflectionClass($class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be false if the clas/interface/traits doesn't exist

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happens in catch no? L359 here.

@fabpot
Copy link
Member

fabpot commented Mar 5, 2018

Thank you @chalasr.

@fabpot fabpot merged commit 0b748fa into symfony:3.4 Mar 5, 2018
fabpot added a commit that referenced this pull request 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
This was referenced Mar 5, 2018
@chalasr chalasr deleted the track-res-check branch March 5, 2018 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants