Skip to content

Commit

Permalink
Fix conflict between Laravel 4 and 5 config namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Stolz committed Feb 10, 2015
1 parent e1a1c03 commit 1b30061
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Laravel/FlushPipelineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ class FlushPipelineCommand extends Command
*/
public function fire()
{
// Determine the config namespace sepatator
$glue = (file_exists(app_path('config/packages/stolz/assets/config.php'))) ? '::' : '.';

// Get directory paths
$pipeDir = Config::get('assets::pipeline_dir', 'min');
$cssDir = public_path(Config::get('assets::css_dir', 'css') . DIRECTORY_SEPARATOR . $pipeDir);
$jsDir = public_path(Config::get('assets::js_dir', 'js') . DIRECTORY_SEPARATOR . $pipeDir);
$pipeDir = Config::get("assets{$glue}pipeline_dir", 'min');
$cssDir = public_path(Config::get("assets{$glue}css_dir", 'css') . DIRECTORY_SEPARATOR . $pipeDir);
$jsDir = public_path(Config::get("assets{$glue}js_dir", 'js') . DIRECTORY_SEPARATOR . $pipeDir);

// Ask for confirmation
if( ! $this->option('force'))
Expand Down

0 comments on commit 1b30061

Please sign in to comment.