Skip to content

Commit

Permalink
Merge pull request phalcon#1139 from phalcon/3.2.x
Browse files Browse the repository at this point in the history
3.2.10
  • Loading branch information
sergeyklay authored Nov 3, 2017
2 parents 61ece69 + ee40029 commit e57276b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ This command should display something similar to:
```sh
$ phalcon --help

Phalcon DevTools (3.2.8)
Phalcon DevTools (3.2.10)

Help:
Lists the commands available in Phalcon devtools
Expand Down
2 changes: 1 addition & 1 deletion scripts/Phalcon/Devtools/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ class Version extends PhVersion
*/
protected static function _getVersion()
{
return [3, 2, 8, 4, 0];
return [3, 2, 10, 4, 0];
}
}
8 changes: 5 additions & 3 deletions scripts/Phalcon/Initializable.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,11 @@ protected function initVolt()
{
$basePath = $this->basePath;
$ptoolsPath = $this->ptoolsPath;
$that = $this;

$this->di->setShared(
'volt',
function ($view, $di) use ($basePath, $ptoolsPath) {
function ($view, $di) use ($basePath, $ptoolsPath, $that) {
/**
* @var DiInterface $this
* @var Config $config
Expand Down Expand Up @@ -208,7 +209,8 @@ function ($view, $di) use ($basePath, $ptoolsPath) {
$compiledPath = function ($templatePath) use (
$voltConfig,
$basePath,
$ptoolsPath
$ptoolsPath,
$that
) {
/**
* @var DiInterface $this
Expand All @@ -224,7 +226,7 @@ function ($view, $di) use ($basePath, $ptoolsPath) {
$filename = str_replace(['\\', '/'], $voltConfig->get('separator', '_'), $templatePath);
$filename = basename($filename, '.volt') . $voltConfig->get('compiledExt', '.php');

$cacheDir = self::getCacheDir($voltConfig);
$cacheDir = $that->getCacheDir($voltConfig);

return rtrim($cacheDir, '\\/') . DS . $filename;
};
Expand Down

0 comments on commit e57276b

Please sign in to comment.