Skip to content

[FrameworkBundle] Monitor added/removed translations files in dev #4036

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
Apr 20, 2012

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Apr 20, 2012

fix #3653

@@ -507,6 +507,9 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder

// Register translation resources
if ($dirs) {
foreach ($dirs as $dir) {
$container->addResource(new FileResource($dir));
Copy link
Contributor

Choose a reason for hiding this comment

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

@vicb Shouldn't it be a DirectoryReource instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

does it matter ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure about the behaviour of filemtime with directories but I'm not sure it will return the date of the last modified file inside.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It worked when I tested but I didn't test nested folders which might require this. thanks for the hint.

@Koc
Copy link
Contributor

Koc commented Apr 20, 2012

maybe you also can fix #971 ?

fabpot added a commit that referenced this pull request Apr 20, 2012
Commits
-------

7ddc8cb [FrameworkBundle] Monitor added/removed translations files in dev (fix #3653)

Discussion
----------

[FrameworkBundle] Monitor added/removed translations files in dev

fix #3653

---------------------------------------------------------------------------

by Koc at 2012-04-20T14:09:55Z

maybe you also can fix #971 ?
@fabpot fabpot merged commit 7ddc8cb into symfony:2.0 Apr 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants