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

check if runtimeconfig path is stored #498

Merged
merged 5 commits into from
Sep 15, 2014
Merged

check if runtimeconfig path is stored #498

merged 5 commits into from
Sep 15, 2014

Conversation

trsteel88
Copy link
Contributor

PR in favour of #497

If a runtime config is specified, the path will be modified to match the hashed path.

@makasim
Copy link
Collaborator

makasim commented Sep 12, 2014

👍 could you add a test

@makasim
Copy link
Collaborator

makasim commented Sep 12, 2014

we have to places where we generate runtime path, here in CacheManager and in the controller: https://github.com/liip/LiipImagineBundle/blob/master/Controller/ImagineController.php#L125

What about a methond in the CacheManager which can generate such a path? The method has to be reused in getBrowserPath and in the controller.

@trsteel88
Copy link
Contributor Author

Should be all good now @makasim. Let me know if there are any issues.

* @param string $path
* @param array $runtimeConfig
*/
public function getRuntimeConfigPath($path, array $runtimeConfig)
Copy link
Collaborator

Choose a reason for hiding this comment

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

getRuntimePath would be better IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

makasim added a commit that referenced this pull request Sep 15, 2014
check if runtimeconfig path is stored
@makasim makasim merged commit 334653c into liip:master Sep 15, 2014
@makasim
Copy link
Collaborator

makasim commented Sep 15, 2014

Good work - 🍺

@trsteel88 trsteel88 deleted the runtime-config-paths branch September 15, 2014 11:13
@makasim
Copy link
Collaborator

makasim commented Sep 15, 2014

tagged it as 1.0.5

@trsteel88
Copy link
Contributor Author

Thanks 👍

@trsteel88 trsteel88 mentioned this pull request Jan 27, 2015
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.

2 participants