if ($actionInstance instanceof PerformableAction) {
// Execute the action (shall not output anything, see below why)
$actionInstance->execute($requestInstance, $responseInstance);
- } // END - if
+ }
// Get the application instance
$applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Import framework stuff
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
-use Org\Mxchange\CoreFramework\Stacker\Index\IndexableStack;
// Import SPL stuff
use \SplFileInfo;
// Get the handler instance
$indexInstance = self::createObjectByConfiguredName($type . '_file_stack_index_class', array($infoInstance));
- // Add check for interface
- assert($indexInstance instanceof IndexableStack);
-
// Add it to the registry
GenericRegistry::getRegistry()->addInstance($type . '_index', $indexInstance);
}
// Run all filters
//* DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('COUNT=' . $this->countGenericArray('filters'));
foreach ($this->getFilters() as $filterInstance) {
- // Must be an instance of Filterable
- assert($filterInstance instanceof Filterable);
-
// Try to execute this filter
try {
//* DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('FILTER: ' . $filterInstance->__toString() . ': Processing started.');
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('Failed to execute lase filter ' . $filterInstance->__toString() . ': ' . $e->getMessage());
break;
}
- } // END - foreach
+ }
}
}
if (!$recipientInstance instanceof ManageableMember) {
// Invalid entry found!
throw new InvalidInterfaceException(array($this, 'ManageableMember'), self::EXCEPTION_REQUIRED_INTERFACE_MISSING);
- } // END - if
+ }
// User class found, so entry is valid, first load the template
$this->loadTemplate($templateName);
if ((!is_object($controllerInstance)) || (!$controllerInstance instanceof Controller)) {
// This controller has an invalid instance!
throw new InvalidControllerInstanceException(array($this, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
- } // END - if
+ }
// Set last controller
$this->setResolvedInstance($controllerInstance);