Skip to content
This repository has been archived by the owner on Nov 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #32 from antfroger/master
Browse files Browse the repository at this point in the history
Differentiates the path where assets are generated from the path where they are stored
  • Loading branch information
mheap committed Jul 29, 2013
2 parents a3a680c + c1edf4d commit 615aceb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SilexAssetic/AsseticServiceProvider.php
Expand Up @@ -50,7 +50,8 @@ public function register(Application $app)
* @return Assetic\Factory\AssetFactory
*/
$app['assetic.factory'] = $app->share(function () use ($app) {
$factory = new AssetFactory($app['assetic.path_to_web'], $app['assetic.options']['debug']);
$root = isset($app['assetic.path_to_source']) ? $app['assetic.path_to_source'] : $app['assetic.path_to_web'];
$factory = new AssetFactory($root, $app['assetic.options']['debug']);
$factory->setAssetManager($app['assetic.asset_manager']);
$factory->setFilterManager($app['assetic.filter_manager']);

Expand Down

0 comments on commit 615aceb

Please sign in to comment.