public function route($uri)
 {
     $urlParts = preg_split('/\\//', $uri, 0, PREG_SPLIT_NO_EMPTY);
     // Only route /cron/ urls
     if ($urlParts[0] !== 'cron') {
         return false;
     }
     parent::route($uri);
     return $this->_moduleName === self::DEFAULT_MODULE_NAME;
 }
 * SURFconext EngineBlock
 *
 * LICENSE
 *
 * Copyright 2011 SURFnet bv, The Netherlands
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
 *
 * @category  SURFconext EngineBlock
 * @package
 * @copyright Copyright © 2010-2011 SURFnet SURFnet bv, The Netherlands (http://www.surfnet.nl)
 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
 */
require '../../library/EngineBlock/ApplicationSingleton.php';
$application = EngineBlock_ApplicationSingleton::getInstance();
$application->bootstrap();
$dispatcher = new EngineBlock_Dispatcher();
$profileRouter = new EngineBlock_Router_Default();
$profileRouter->requireModule('VoManage');
$dispatcher->setRouters(array($profileRouter, new EngineBlock_Router_CatchAll('VoManage', 'Index', 'Index')));
$dispatcher->dispatch();
$application->getHttpResponse()->send();
 public function route($uri)
 {
     parent::route($uri);
     // Only route /authentication/ urls
     return $this->_moduleName === self::DEFAULT_MODULE_NAME;
 }
 * SURFconext EngineBlock
 *
 * LICENSE
 *
 * Copyright 2011 SURFnet bv, The Netherlands
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
 *
 * @category  SURFconext EngineBlock
 * @package
 * @copyright Copyright © 2010-2011 SURFnet SURFnet bv, The Netherlands (http://www.surfnet.nl)
 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
 */
require '../../library/EngineBlock/ApplicationSingleton.php';
$application = EngineBlock_ApplicationSingleton::getInstance();
$application->bootstrap();
$dispatcher = new EngineBlock_Dispatcher();
$profileRouter = new EngineBlock_Router_Default();
$profileRouter->requireModule('Profile');
$dispatcher->setRouters(array($profileRouter, new EngineBlock_Router_CatchAll('Profile', 'Index', 'Index')));
$dispatcher->dispatch();
$application->getHttpResponse()->send();
<?php

require '../../library/EngineBlock/ApplicationSingleton.php';
$application = EngineBlock_ApplicationSingleton::getInstance();
$application->bootstrap();
$dispatcher = new EngineBlock_Dispatcher();
$dispatcher->setRouters(array(EngineBlock_Router_Default::create()->setDefaultModuleName('Profile')->requireModule('Profile')));
$dispatcher->dispatch();
$application->getHttpResponse()->send();
 public function route($uri)
 {
     parent::route($uri);
     // Only route /authentication/ urls
     return $this->_moduleName === $this->_defaultModuleName;
 }