Skip to content

Commit

Permalink
Getting the blade name from the input
Browse files Browse the repository at this point in the history
  • Loading branch information
abidulrmdn committed Jul 2, 2017
1 parent 35cd64d commit 1332664
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Console/CompileBlades.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CompileBlades extends Command
*
* @var string
*/
protected $signature = 'compile:blades';
protected $signature = 'compile:blades {blade-name}';

/**
* The console command description.
Expand All @@ -32,8 +32,7 @@ class CompileBlades extends Command
*/
public function handle()
{
dd('asd');
$viewName = 'filtered';
$viewName = $this->argument('blade-name');

$blade = $this->compile(view($viewName)->getPath());
file_put_contents(view($viewName)->getPath(), $blade);
Expand Down
9 changes: 9 additions & 0 deletions src/TestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
use Mockery as m;
abstract class TestCase extends PHPUnit_Framework_TestCase
{
public function tearDown()
{
m::close();
}
}

0 comments on commit 1332664

Please sign in to comment.