9cc02a266e6333df95ca03c5192bddcbc787a7fd
[GitHub/Stricted/Domain-Control-Panel.git] / vendor / Zend / Mvc / Controller / Plugin / CreateConsoleNotFoundModel.php
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
4 *
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
9
10 namespace Zend\Mvc\Controller\Plugin;
11
12 use Zend\View\Model\ConsoleModel;
13
14 class CreateConsoleNotFoundModel extends AbstractPlugin
15 {
16 /**
17 * Create a console view model representing a "not found" action
18 *
19 * @return ConsoleModel
20 */
21 public function __invoke()
22 {
23 $viewModel = new ConsoleModel();
24
25 $viewModel->setErrorLevel(1);
26 $viewModel->setResult('Page not found');
27
28 return $viewModel;
29 }
30 }