Skip to content

Commit

Permalink
Handle when fwrite failes.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 11, 2015
1 parent e6c7e5a commit 3f76714
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Console/Commands/OptimizeCommand.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Orchestra\Foundation\Console\Commands;

use RuntimeException;
use ClassPreloader\Factory;
use ClassPreloader\Exceptions\SkipFileException;
use ClassPreloader\Exceptions\VisitorExceptionInterface;
Expand Down Expand Up @@ -31,6 +32,8 @@ protected function compileClasses()
// Class Preloader 2.x
} catch (VisitorExceptionInterface $e) {
// Class Preloader 3.x
} catch (RuntimeException $e) {
// Handle when fwrite fails.
}
}

Expand Down

0 comments on commit 3f76714

Please sign in to comment.