Skip to content

[DependencyInjection][Routing] add files used in FileResource objects #17672

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 4, 2016

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 3, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #17598 (comment)
License MIT
Doc PR

Starting with Symfony 3.1, the constructor of the FileResource class
will throw an exception when the passed file does not exist.

Starting with Symfony 3.1, the constructor of the `FileResource` class
will throw an exception when the passed file does not exist.
@xabbuh xabbuh changed the title add files used in FileResource objects [DependencyInjection][Routing] add files used in FileResource objects Feb 3, 2016
@xabbuh
Copy link
Member Author

xabbuh commented Feb 4, 2016

ping @symfony/deciders (we need this to make the test suite pass again for all branches on Travis)

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 4f865c7 into symfony:2.3 Feb 4, 2016
nicolas-grekas added a commit that referenced this pull request Feb 4, 2016
…rce objects (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[DependencyInjection][Routing] add files used in FileResource objects

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17598 (comment)
| License       | MIT
| Doc PR        |

Starting with Symfony 3.1, the constructor of the `FileResource` class
will throw an exception when the passed file does not exist.

Commits
-------

4f865c7 add files used in FileResource objects
@xabbuh xabbuh deleted the pr-17598-2.3 branch February 4, 2016 13:57
@SimonSimCity
Copy link
Contributor

Just to add this as a side-note: I also had a problem that was fixed by these lines here. My usecase was like following:

I had a class in my self-written extension, that extended a native PHP class. Thereby the parent-class hasn't had a valid includable file. The result now was, that the cache, containing the dependencies merged in a single file, was rebuild all the time, because the timestamp of that file couldn't be checked.

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.

4 participants