]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/controller/class_BaseController.php
Continued:
[core.git] / framework / main / classes / controller / class_BaseController.php
index 56c0e214a4929041230a07e7c70ffc069b84d11e..7c2acb44e16631da5dfc4b2097226d72d67149d8 100644 (file)
@@ -193,7 +193,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $filterChain    Name of the filter chain
         * @return      void
         */
-       protected function initFilterChain ($filterChain) {
+       protected function initFilterChain (string $filterChain) {
                //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONTROLLER: ' . $filterChain . ' init: START');
                $this->filterChains[$filterChain] = ObjectFactory::createObjectByConfiguredName('filter_chain_class');
                //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONTROLLER: ' . $filterChain . ' init: FINISHED');
@@ -207,7 +207,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @return      void
         * @throws      InvalidFilterChainException     If the filter chain is invalid
         */
-       protected function addFilter ($filterChain, Filterable $filterInstance) {
+       protected function addFilter (string $filterChain, Filterable $filterInstance) {
                //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONTROLLER: ' . $filterChain . ',' . $filterInstance->__toString(). ' add: START');
 
                // Test if the filter is there
@@ -262,7 +262,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @return      void
         * @throws      InvalidFilterChainException     If the filter chain is invalid
         */
-       protected function executeFilters ($filterChain, Requestable $requestInstance, Responseable $responseInstance) {
+       protected function executeFilters (string $filterChain, Requestable $requestInstance, Responseable $responseInstance) {
                // Test if the filter is there
                if (!isset($this->filterChains[$filterChain])) {
                        // Throw an exception here