<?php
// Own namespace
-namespace CoreFramework\Controller;
+namespace Org\Mxchange\CoreFramework\Controller;
// Import framework stuff
-use CoreFramework\Chain\Filter\InvalidFilterChainException;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Object\BaseFrameworkSystem;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Chain\Filter\InvalidFilterChainException;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
/**
* A generic controller class. You should extend this base class if you want to
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class BaseController extends BaseFrameworkSystem implements Registerable {
+abstract class BaseController extends BaseFrameworkSystem implements Registerable {
// Exception constants
const EXCEPTION_FILTER_CHAIN_INVALID = 0xf10;
$this->initFilterChain(self::FILTER_CHAIN_POST_COMMAND);
// Add this controller to the registry
- Registry::getRegistry()->addInstance('controller', $this);
+ GenericRegistry::getRegistry()->addInstance('controller', $this);
}
/**
// Execute the command
$commandInstance->execute($requestInstance, $responseInstance);
- // Execute *very* generic ppost filters
+ // Execute *very* generic post filters
$this->executePostFilters($requestInstance, $responseInstance);
} // END - if
// Execute the command
$commandInstance->execute($requestInstance, $responseInstance);
- // Run the pre filters
+ // Run the post filters
$this->executePostFilters($requestInstance, $responseInstance);
// Flush the response out