Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding error preview console controllers
- Loading branch information
1 parent
c09e83f
commit 1579f09
Showing
5 changed files
with
82 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace ErrorHeroModule\Controller; | ||
|
||
use Zend\Mvc\Controller\AbstractConsoleController; | ||
use Zend\View\Model\ConsoleModel; | ||
|
||
class ErrorPreviewConsoleZF2Controller extends AbstractConsoleController | ||
{ | ||
public function exceptionAction() | ||
{ | ||
throw new \Exception('a sample error preview'); | ||
} | ||
|
||
public function errorAction() | ||
{ | ||
$array = []; | ||
$array[1]; // E_NOTICE | ||
|
||
return new ConsoleModel(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace ErrorHeroModule\Controller; | ||
|
||
use Zend\Mvc\Console\Controller\AbstractConsoleController; | ||
use Zend\View\Model\ConsoleModel; | ||
|
||
class ErrorPreviewConsoleZF3Controller extends AbstractConsoleController | ||
{ | ||
public function exceptionAction() | ||
{ | ||
throw new \Exception('a sample error preview'); | ||
} | ||
|
||
public function errorAction() | ||
{ | ||
$array = []; | ||
$array[1]; // E_NOTICE | ||
|
||
return new ConsoleModel(); | ||
} | ||
} |