Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos-webui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/zendframework/zend-mvc/src/Controller/AbstractConsoleController.php')
-rw-r--r--vendor/zendframework/zend-mvc/src/Controller/AbstractConsoleController.php57
1 files changed, 0 insertions, 57 deletions
diff --git a/vendor/zendframework/zend-mvc/src/Controller/AbstractConsoleController.php b/vendor/zendframework/zend-mvc/src/Controller/AbstractConsoleController.php
deleted file mode 100644
index 42eb361..0000000
--- a/vendor/zendframework/zend-mvc/src/Controller/AbstractConsoleController.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * Zend Framework (http://framework.zend.com/)
- *
- * @link http://github.com/zendframework/zf2 for the canonical source repository
- * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-namespace Zend\Mvc\Controller;
-
-use Zend\Console\Adapter\AdapterInterface as ConsoleAdapter;
-use Zend\Console\Request as ConsoleRequest;
-use Zend\Mvc\Exception\InvalidArgumentException;
-use Zend\Stdlib\RequestInterface;
-use Zend\Stdlib\ResponseInterface;
-
-class AbstractConsoleController extends AbstractActionController
-{
- /**
- * @var ConsoleAdapter
- */
- protected $console;
-
- /**
- * @param ConsoleAdapter $console
- * @return self
- */
- public function setConsole(ConsoleAdapter $console)
- {
- $this->console = $console;
-
- return $this;
- }
-
- /**
- * @return ConsoleAdapter
- */
- public function getConsole()
- {
- return $this->console;
- }
-
- /**
- * {@inheritdoc}
- */
- public function dispatch(RequestInterface $request, ResponseInterface $response = null)
- {
- if (! $request instanceof ConsoleRequest) {
- throw new InvalidArgumentException(sprintf(
- '%s can only dispatch requests in a console environment',
- get_called_class()
- ));
- }
- return parent::dispatch($request, $response);
- }
-}