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

Skip to content

[TEMPLATING] relative paths in template cache #16233

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
wants to merge 4 commits into from
Closed

[TEMPLATING] relative paths in template cache #16233

wants to merge 4 commits into from

Conversation

rvanginneken
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets #3079
License MIT
Doc PR
  • run tests

Templates are saved with relative paths. Absolute path is added on locate.

* @param string $cacheDir The cache path
*/
public function __construct(FileLocatorInterface $locator, $cacheDir = null)
public function __construct(FileLocatorInterface $locator, $rootDir, $cacheDir = null)
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a bc break

@@ -36,6 +37,7 @@ public function __construct(FileLocatorInterface $locator, $cacheDir = null)
$this->cache = require $cache;
}

$this->rootDir = realpath(__dir__.'/../../../../../../../../../');
Copy link
Contributor

Choose a reason for hiding this comment

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

This is totally wrong. We shouldn't rely on the location Symfony is installed in.

@jakzal
Copy link
Contributor

jakzal commented Oct 23, 2015

What are you trying to fix here?

Sorry, I just noticed a reference to #3079.

@dzuelke
Copy link
Contributor

dzuelke commented Dec 9, 2015

What's the status of this? :)

@fabpot
Copy link
Member

fabpot commented Mar 2, 2016

@rvanginneken Are you able to finish this one?

@rvanginneken
Copy link
Contributor Author

@fabpot As I have not other solution; No.

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.

7 participants