]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/filter/cruncher/class_CruncherInitializationFilter.php
Introduced experimental apt-proxy sub project (a connector for apt-proxy usage into...
[hub.git] / application / hub / main / filter / cruncher / class_CruncherInitializationFilter.php
index f33ff1d5977954feca4f645ff3a9dd486e1ae02b..32ce221d9eae8ec8824553183b4e55c4330b19c9 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
+ * @copyright  Copyright (c) 2011 - 2012 Cruncher Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -21,7 +21,7 @@
  * 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 CruncherInitializationFilter extends BaseFilter implements Filterable {
+class CruncherInitializationFilter extends BaseCruncherFilter implements Filterable {
        /**
         * Protected constructor
         *
@@ -72,7 +72,7 @@ class CruncherInitializationFilter extends BaseFilter implements Filterable {
                // And try to instance it
                try {
                        // Get an instance
-                       $cruncherInstance = ObjectFactory::createObjectByName($className, array($requestInstance));
+                       $cruncherInstance = ObjectFactory::createObjectByName($className);
 
                        // Get a registry
                        $applicationInstance = Registry::getRegistry()->getInstance('app');
@@ -84,8 +84,8 @@ class CruncherInitializationFilter extends BaseFilter implements Filterable {
                        $cruncherInstance->addExtraFilters($applicationInstance->getControllerInstance(), $responseInstance);
                } catch (ClassNotFoundException $e) {
                        // This exception means, the cruncher mode is invalid.
-                       // @TODO Can we rewrite this to app_die() ?
-                       die('Cruncher mode ' . $cruncherMode . ' is invalid.' . "\n");
+                       // @TODO Can we rewrite this to app_exit() ?
+                       $this->debugBackTrace('[' . __METHOD__ . ':' . __LINE__ . ']:  cruncher mode ' . $cruncherMode . ' is invalid.');
                }
 
                // Set the cruncher instance in registry