3 * Zend Framework (http://framework.zend.com/)
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
10 namespace Zend\Mvc\Controller\Plugin
;
12 use Zend\View\Model\ConsoleModel
;
14 class CreateConsoleNotFoundModel
extends AbstractPlugin
17 * Create a console view model representing a "not found" action
19 * @return ConsoleModel
21 public function __invoke()
23 $viewModel = new ConsoleModel();
25 $viewModel->setErrorLevel(1);
26 $viewModel->setResult('Page not found');