Actions (so called sub-commands) may now have own pre/post filter, profile update...
[shipsimu.git] / inc / classes / main / controller / default / class_WebDefaultNewsController.php
index e0f506aacca7b99a0af62da8ce0952f8a744660e..03f29d2d3afb45cb790b5e92dd08f242e39b03d7 100644 (file)
@@ -68,10 +68,10 @@ class WebDefaultNewsController extends BaseController implements Controller {
         */
        public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
                // Get the command instance from the resolver by sending a request instance to the resolver
-               $commandInstance = $this->getResolverInstance()->resolvCommandByRequest($requestInstance);
+               $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance);
 
                // Add more filters by the command
-               $commandInstance->addExtraFilters($this);
+               $commandInstance->addExtraFilters($this, $requestInstance);
 
                // Run the pre filters
                $this->executePreFilters($requestInstance, $responseInstance);