Skip to content

Commit

Permalink
Merge pull request #2 from PaulRieger/dev-bugfix
Browse files Browse the repository at this point in the history
update for Slim 3.0.0 & added support for alternative filename caching method in the asset extension
  • Loading branch information
feryardiant committed Dec 9, 2015
2 parents 4bcdbe8 + c87a2c2 commit b5dad3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"require": {
"php": ">=5.5.0",
"league/plates": "~3.1.0",
"slim/slim": "3.x-dev"
"slim/slim": "^3"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
Expand Down
3 changes: 2 additions & 1 deletion src/Plates.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Plates
'directory' => null,
'assetPath' => null,
'fileExtension' => 'php',
'timestampInFilename' => false,
];

/**
Expand Down Expand Up @@ -49,7 +50,7 @@ public function getPlates()
*/
public function setAssetPath($assetPath)
{
return $this->plates->loadExtension(new Asset($assetPath));
return $this->plates->loadExtension(new Asset($assetPath, $this->settings['timestampInFilename']));
}

/**
Expand Down

0 comments on commit b5dad3e

Please sign in to comment.