Skip to content

Commit 7bf50d8

Browse files
committedMar 10, 2015
Optimize shouldn't compile views.
·
v12.21.05.0.30
1 parent cfa7fcb commit 7bf50d8

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed
 

‎src/Illuminate/Foundation/Console/OptimizeCommand.php

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ public function fire()
6666
$this->info('Compiling common classes');
6767

6868
$this->compileClasses();
69-
70-
$this->info('Compiling views');
71-
72-
$this->compileViews();
7369
}
7470
else
7571
{
@@ -126,34 +122,6 @@ protected function registerClassPreloaderCommand()
126122
$this->getApplication()->add(new PreCompileCommand);
127123
}
128124

129-
/**
130-
* Compile all view files.
131-
*
132-
* @return void
133-
*/
134-
protected function compileViews()
135-
{
136-
foreach ($this->laravel['view']->getFinder()->getPaths() as $path)
137-
{
138-
foreach ($this->laravel['files']->allFiles($path) as $file)
139-
{
140-
try
141-
{
142-
$engine = $this->laravel['view']->getEngineFromPath($file);
143-
}
144-
catch (InvalidArgumentException $e)
145-
{
146-
continue;
147-
}
148-
149-
if ($engine instanceof CompilerEngine)
150-
{
151-
$engine->getCompiler()->compile($file);
152-
}
153-
}
154-
}
155-
}
156-
157125
/**
158126
* Get the console command options.
159127
*

0 commit comments

Comments
 (0)
Failed to load comments.