* @param $controllerInstance A controller instance
* @param $requestInstance An instance of a class with an Requestable interface
* @return void
- * @todo Should we add some more filters?
*/
public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+ // @TODO Unfinished
+ return;
+
// Add pre filters
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('node_php_requirements_filter'));
- $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('node_initializer_filter'));
- $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('node_welcome_teaser_filter'));
-
- // Add bootstrap filters
- $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('node_bootstrap_generate_nodeid_filter'));
- $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('node_bootstrap_generate_sessionid_filter'));
- $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('node_bootstrap_generate_private_key_filter'));
- $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('node_bootstrap_extra_bootstrapping_filter'));
- $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('node_bootstrap_listener_pool_filter'));
-
- // Add node activation filters
- $controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('node_activation_task_handler_initializer_filter'));
-
- // Add shutdown filters
- $controllerInstance->addShutdownFilter(ObjectFactory::createObjectByConfiguredName('node_shutdown_flush_node_list_filter'));
- $controllerInstance->addShutdownFilter(ObjectFactory::createObjectByConfiguredName('node_shutdown_task_handler_filter'));
-
- // This is the last generic shutdown filter
- $controllerInstance->addShutdownFilter(ObjectFactory::createObjectByConfiguredName('node_shutdown_node_filter'));
}
}
// Set the application instance
$resolverInstance->setApplicationInstance($applicationInstance);
+ $resolverInstance->setNamespace('CoreFramework\Tests\Command');
// Return the prepared instance
return $resolverInstance;
// CFG: NEWS-PROCESS-FILTER
$cfg->setConfigEntry('news_process_filter', 'CoreFramework\Filter\News\NewsProcessFilter');
+
+// CFG: NEWS-READER-MAIN-CLASS
+$cfg->setConfigEntry('news_reader_main_class', 'CoreFramework\Reader\News\Console\ConsoleNewsReader');
namespace CoreFramework\Factory\Cache;
// Import framework stuff
+use CoreFramework\Factory\BaseFactory;
use CoreFramework\Factory\ObjectFactory;
/**
namespace CoreFramework\Factory\News;
// Import framework stuff
+use CoreFramework\Factory\BaseFactory;
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Request\Requestable;
namespace CoreFramework\Logging;
// Import framework stuff
+use CoreFramework\Factory\BaseFactory;
use CoreFramework\Generic\FrameworkInterface;
/**
namespace CoreFramework\Filter\News;
// Import framework stuff
+use CoreFramework\Factory\News\HtmlNewsFactory;
use CoreFramework\Filter\BaseFilter;
use CoreFramework\Filter\Filterable;
use CoreFramework\Registry\Registry;
<?php
// Own namespace
-namespace CoreFramework\Reader\News;
+namespace CoreFramework\Reader\News\Console;
// Import framework stuff
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Object\BaseFrameworkSystem;
+use CoreFramework\Reader\News\ReadableNews;
use CoreFramework\Registry\Registerable;
use CoreFramework\Request\Requestable;
} // END - if
// Check if command is valid
- if ($this->isCommandValid($commandName) === FALSE) {
+ if ($this->isCommandValid($this->getNamespace(), $commandName) === FALSE) {
// This command is invalid!
throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND);
} // END - if