Phalcon Framework 3.4.1

Phalcon\Mvc\Dispatcher\Exception: Dispatcher has detected a cyclic routing causing stability problems

/var/www/iLove2.0/public/index.php (474)
#0Phalcon\Mvc\Dispatcher->_throwDispatchException(Dispatcher has detected a cyclic routing causing stability problems, 1)
#1Phalcon\Dispatcher->dispatch()
#2Phalcon\Mvc\Application->handle()
/var/www/iLove2.0/public/index.php (474)
<?php
 
error_reporting(E_ALL);
 
$debug = new \Phalcon\Debug();
$debug->listen();
 
use Phalcon\Loader;
use Phalcon\Mvc\Router;
use Phalcon\DI\FactoryDefault;
use Phalcon\Mvc\Application as BaseApplication;
 
define('APPLICATION_PATH', __DIR__ . '/../apps');
define('PUBLIC_PATH', __DIR__ );
define('XML_FOLDER', PUBLIC_PATH . '/xml/');
define('LOGS_FOLDER', __DIR__ . '/../logs/');
define('IMAGES_FOLDER', __DIR__ . '/images/');
 
 
ini_set('memory_limit','4000M');
 
date_default_timezone_set('America/Sao_Paulo');
 
class Application extends BaseApplication
{
    /**
     * Register the services here to make them general or register in the ModuleDefinition to make them module-specific
     */
    protected function registerServices()
    {
 
        $di = new FactoryDefault();
 
        $loader = new Loader();
 
        /**
         * We're a registering a set of directories taken from the configuration file
         */
 
        $loader->registerNamespaces(
            [
               "Cocur\Slugify"    => APPLICATION_PATH . "/../vendor/slugify/src",
               "Dotenv"    => APPLICATION_PATH . "/../vendor/vlucas/phpdotenv/src"
 
            ]
        );
 
        $loader
            ->registerDirs([__DIR__ . '/../apps/helpers/',__DIR__ . '/../apps/security/'])
            ->register();
 
        require_once APPLICATION_PATH . '/../vendor/autoload.php';
 
        // Registering a router
        $di->set('router', function () {
 
            $router = new Router(false);
 
            $router->setDefaultModule("frontend");
 
            $router->notFound(array(
              'module' => 'frontend',
              "controller" => "notfound",
              "action" => "index",
              "page"  => "404"
            ));
 
 
            //DEFAULT FRONTEND ROUTES
            // $router->add('/:controller/:action', [
            //     'module'     => 'frontend',
            //     'controller' => 1,
            //     'action'     => 2,
            // ])->setName('frontend');
 
 
            $router->add("/produto/{loja:[a-z0-9\-]+}/{marca:[a-z0-9\-]+}/{nome:[a-z0-9\-]+}/{id:[a-z0-9\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "produto",
                "page"       => "produto",
                "nomeseo"    => "produto"
            ]);
 
            $router->add("/produto/{nome:[a-z0-9\-]+}/{id:[a-z0-9\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "produto",
                "page"       => "produto",
                "nomeseo"    => "produto"
            ]);
 
            $router->add("/categoria/{categoria:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "categoria",
                "nomeseo"    => "categoria",
                "pagina"     => "0"
            ]);
 
            $router->add("/categoria/{categoria:[a-z\-]+}/{categoria2:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "categoria",
                "nomeseo"    => "categoria"
            ]);
 
            $router->add("/categoria/{categoria:[a-z\-_]+}/{categoria2:[a-z\-_]+}/{categoria3:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "categoria",
                "nomeseo"    => "categoria"
            ]);
 
            $router->add("/categoria/{categoria:[a-z\-_]+}/{categoria2:[a-z\-_]+}/{categoria3:[a-z\-_]+}/{categoria4:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "categoria",
                "nomeseo"    => "categoria"
            ]);
 
            $router->add("/outlet/{categoria:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "outlet",
                "nomeseo"    => "outlet",
                "pagina"     => "0"
            ]);
 
            $router->add("/outlet/{categoria:[a-z\-_]+}/{categoria2:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "outlet",
                "nomeseo"    => "outlet"
            ]);
 
            $router->add("/outlet/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}/{categoria3:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "outlet",
                "nomeseo"    => "outlet"
            ]);
 
            $router->add("/outlet/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}/{categoria3:[a-z\-]+}/{categoria4:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "outlet",
                "nomeseo"    => "outlet"
            ]);
 
            $router->add("/novidades/{categoria:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "novidades",
                "nomeseo"    => "novidades",
                "pagina"     => "0"
            ]);
 
            $router->add("/novidades/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "novidades",
                "nomeseo"    => "novidades"
            ]);
 
            $router->add("/novidades/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}/{categoria3:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "novidades",
                "nomeseo"    => "novidades"
            ]);
 
            $router->add("/novidades/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}/{categoria3:[a-z\-]+}/{categoria4:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "novidades",
                "nomeseo"    => "novidades"
            ]);
 
            $router->add("/loja/{loja}",[
                "module"     => "frontend",
                "controller" => "categoria",
                "action"     => "index",
                "page"       => "loja",
                "nomeseo"    => "loja",
                "lojas"      => 1,
                "pagina"     => "0",
 
            ])->setName("frontend-loja");
 
            $router->add("/loja/{loja}/{pagina}",[
                "module"     => "frontend",
                "controller" => "categoria",
                "action"     => "index",
                "page"       => "loja",
                "nomeseo"    => "loja",
                "lojas"      => 1,
                "pagina"     => 2,
 
            ])->setName("frontend-loja-pagina");
 
 
            $router->add("/",[
                "module"     => "frontend",
                "controller" => "index",
                "action"     => "index",
                "page"       => "home",
                "nomeseo"    => "home"
            ])->setName("frontend-home");
 
            $router->add("/([a-z0-9\-]+)",[
                "module"     => "frontend",
                "controller" => "categoria",
                "action"     => "index",
                "page"       => "marca",
                "nomeseo"    => "marca",
                "marcas"  => 1
            ])->setName("frontend-marca");
 
 
            $router->add("/busca",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "busca",
                "page"       => "busca",
                "nomeseo"    => "busca",
                "pagina"     => "0",
            ]);
 
             $router->add("/buscaFoward",[
                "action"     => "buscaFoward",
                "module"     => "frontend",
                "controller" => "busca",
                "page"       => "busca",
                "nomeseo"    => "busca",
                "pagina"     => "0",
            ]);
 
            $router->add("/sobre-nos",[
                "module"     => "frontend",
                "controller" => "welcome",
                "action"     => "index",
            ])->setName("frontend-home");
 
            $router->add("/not-found",[
                "module"     => "frontend",
                "controller" => "Notfound",
                "action"     => "index",
            ])->setName("frontend-notFound");
 
            $router->add("/marcas",[
                "module"     => "frontend",
                "controller" => "lojasmarcas",
                "action"     => "index",
                "page"       => "marcas",
                "nomeseo"    => "marcas"
            ])->setName("frontend-marcas");
 
            $router->add("/lojas",[
                "module"     => "frontend",
                "controller" => "lojasmarcas",
                "action"     => "index",
                "page"       => "lojas",
                "nomeseo"    => "lojas"
            ])->setName("frontend-lojas");
 
            $router->add("/cupom",[
                "module"     => "frontend",
                "controller" => "Cupom",
                "action"     => "index",
                "page"       => "cupons",
            ])->setName("frontend-cupom");
 
            $router->add("/cupom/{parceiro}",[
                "module"     => "frontend",
                "controller" => "Cupom",
                "action"     => "interno",
                "parceiro"   => 1,
                "page"       => "cupom",
            ])->setName("frontend-cupom-interno");
 
            $router->add("/vitrine/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "vitrine",
                "nomeseo"    => "vitrine",
                "tipo"       => 1,
                "slug"       => 2
            ]);
 
            $router->add("/materia/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "materia",
                "nomeseo"    => "materia",
                "tipo"       => 1,
                "slug"       => 2,
                "redir"      => true
            ]);
 
            $router->add("/looks",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "looks",
                "nomeseo"    => "looks",
                "pagina"     => "0"
            ]);
 
            $router->add("/historias",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "materias",
                "nomeseo"    => "materias",
                "pagina"     => "0"
            ]);
 
            $router->add("/historia/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "materia",
                "nomeseo"    => "materia",
                "tipo"       => 1,
                "slug"       => 2
            ])->setName("historia-single");
 
            $router->add("/vitrines",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "vitrines",
                "nomeseo"    => "vitrines",
                "pagina"     => "0"
            ]);
 
            $router->add("/moods",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "moods",
                "nomeseo"    => "moods",
                "pagina"     => "0"
            ]);
 
             $router->add("/look/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "look",
                "nomeseo"    => "look",
                "tipo"       => 1,
                "slug"       => 2
            ]);
 
             $router->add("/mood/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "mood",
                "nomeseo"    => "mood",
                "tipo"       => 1,
                "slug"       => 2
            ]);
 
            $router->add("/termos-de-uso",[
                "module"     => "frontend",
                "controller" => "politicas",
                "action"     => "index",
                "parceiro"   => 1
            ])->setName("frontend-cupom-interno");
 
            $router->add("/tags",[
                "module"     => "frontend",
                "controller" => "tags",
                "action"     => "index",
                "page"       => "tags",
                "nomeseo"    => "tags"
            ])->setName("frontend-tags");
 
            $router->add("/materias",[
                "module"     => "frontend",
                "controller" => "tags",
                "action"     => "index",
                "page"       => "tags",
                "nomeseo"    => "tags"
            ])->setName("frontend-materias-tags");
 
 
            //API ROUTES
            $router->add("/api/:controller/:action/:params", [
                'module'     => 'api',
                'controller' => 1,
                'action'     => 2,
                'params'     => 3,
            ])->setName('api');
 
            $router->add("/api/:controller", [
                'module'     => 'api',
                'controller' => 1,
                'action'     => 'index',
            ])->setName('api');
 
            $router->add("/api", [
                'module'     => 'api',
                'controller' => 'index',
                'action'     => 'index',
            ])->setName('api');
 
 
            //BACKEND ROUTES
            $router->add("/backend/:controller/:action/:params", [
                'module'     => 'backend',
                'controller' => 1,
                'action'     => 2,
                'params'     => 3
            ])->setName('backend');
 
            $router->add("/backend/:controller", [
                'module'     => 'backend',
                'controller' => 1,
                'action'     => 'index',
 
            ])->setName('backend');
 
            $router->add("/backend", [
                'module'     => 'backend',
                'controller' => 'index',
                'action'     => 'index',
            ])->setName('backend');
 
            return $router;
        });
 
        $this->setDI($di);
    }
 
    public function main()
    {
 
        $this->registerServices();
 
        // Register the installed modules
        $this->registerModules([
            'frontend' => [
                'className' => 'Multiple\Frontend\Module',
                'path'      => '../apps/frontend/Module.php'
            ],
            'backend'  => [
                'className' => 'Multiple\Backend\Module',
                'path'      => '../apps/backend/Module.php'
            ],
            'api'  => [
                'className' => 'Multiple\api\Module',
                'path'      => '../apps/api/Module.php'
            ]
        ]);
 
        echo $this->handle()->getContent();
    }
}
 
$application = new Application();
$application->main();
#3Application->main()
/var/www/iLove2.0/public/index.php (479)
<?php
 
error_reporting(E_ALL);
 
$debug = new \Phalcon\Debug();
$debug->listen();
 
use Phalcon\Loader;
use Phalcon\Mvc\Router;
use Phalcon\DI\FactoryDefault;
use Phalcon\Mvc\Application as BaseApplication;
 
define('APPLICATION_PATH', __DIR__ . '/../apps');
define('PUBLIC_PATH', __DIR__ );
define('XML_FOLDER', PUBLIC_PATH . '/xml/');
define('LOGS_FOLDER', __DIR__ . '/../logs/');
define('IMAGES_FOLDER', __DIR__ . '/images/');
 
 
ini_set('memory_limit','4000M');
 
date_default_timezone_set('America/Sao_Paulo');
 
class Application extends BaseApplication
{
    /**
     * Register the services here to make them general or register in the ModuleDefinition to make them module-specific
     */
    protected function registerServices()
    {
 
        $di = new FactoryDefault();
 
        $loader = new Loader();
 
        /**
         * We're a registering a set of directories taken from the configuration file
         */
 
        $loader->registerNamespaces(
            [
               "Cocur\Slugify"    => APPLICATION_PATH . "/../vendor/slugify/src",
               "Dotenv"    => APPLICATION_PATH . "/../vendor/vlucas/phpdotenv/src"
 
            ]
        );
 
        $loader
            ->registerDirs([__DIR__ . '/../apps/helpers/',__DIR__ . '/../apps/security/'])
            ->register();
 
        require_once APPLICATION_PATH . '/../vendor/autoload.php';
 
        // Registering a router
        $di->set('router', function () {
 
            $router = new Router(false);
 
            $router->setDefaultModule("frontend");
 
            $router->notFound(array(
              'module' => 'frontend',
              "controller" => "notfound",
              "action" => "index",
              "page"  => "404"
            ));
 
 
            //DEFAULT FRONTEND ROUTES
            // $router->add('/:controller/:action', [
            //     'module'     => 'frontend',
            //     'controller' => 1,
            //     'action'     => 2,
            // ])->setName('frontend');
 
 
            $router->add("/produto/{loja:[a-z0-9\-]+}/{marca:[a-z0-9\-]+}/{nome:[a-z0-9\-]+}/{id:[a-z0-9\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "produto",
                "page"       => "produto",
                "nomeseo"    => "produto"
            ]);
 
            $router->add("/produto/{nome:[a-z0-9\-]+}/{id:[a-z0-9\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "produto",
                "page"       => "produto",
                "nomeseo"    => "produto"
            ]);
 
            $router->add("/categoria/{categoria:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "categoria",
                "nomeseo"    => "categoria",
                "pagina"     => "0"
            ]);
 
            $router->add("/categoria/{categoria:[a-z\-]+}/{categoria2:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "categoria",
                "nomeseo"    => "categoria"
            ]);
 
            $router->add("/categoria/{categoria:[a-z\-_]+}/{categoria2:[a-z\-_]+}/{categoria3:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "categoria",
                "nomeseo"    => "categoria"
            ]);
 
            $router->add("/categoria/{categoria:[a-z\-_]+}/{categoria2:[a-z\-_]+}/{categoria3:[a-z\-_]+}/{categoria4:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "categoria",
                "nomeseo"    => "categoria"
            ]);
 
            $router->add("/outlet/{categoria:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "outlet",
                "nomeseo"    => "outlet",
                "pagina"     => "0"
            ]);
 
            $router->add("/outlet/{categoria:[a-z\-_]+}/{categoria2:[a-z\-_]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "outlet",
                "nomeseo"    => "outlet"
            ]);
 
            $router->add("/outlet/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}/{categoria3:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "outlet",
                "nomeseo"    => "outlet"
            ]);
 
            $router->add("/outlet/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}/{categoria3:[a-z\-]+}/{categoria4:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "outlet",
                "nomeseo"    => "outlet"
            ]);
 
            $router->add("/novidades/{categoria:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "novidades",
                "nomeseo"    => "novidades",
                "pagina"     => "0"
            ]);
 
            $router->add("/novidades/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "novidades",
                "nomeseo"    => "novidades"
            ]);
 
            $router->add("/novidades/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}/{categoria3:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "novidades",
                "nomeseo"    => "novidades"
            ]);
 
            $router->add("/novidades/{categoria:[a-z\-]+}/{categoria2:[a-z\-]+}/{categoria3:[a-z\-]+}/{categoria4:[a-z\-]+}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "categoria",
                "page"       => "novidades",
                "nomeseo"    => "novidades"
            ]);
 
            $router->add("/loja/{loja}",[
                "module"     => "frontend",
                "controller" => "categoria",
                "action"     => "index",
                "page"       => "loja",
                "nomeseo"    => "loja",
                "lojas"      => 1,
                "pagina"     => "0",
 
            ])->setName("frontend-loja");
 
            $router->add("/loja/{loja}/{pagina}",[
                "module"     => "frontend",
                "controller" => "categoria",
                "action"     => "index",
                "page"       => "loja",
                "nomeseo"    => "loja",
                "lojas"      => 1,
                "pagina"     => 2,
 
            ])->setName("frontend-loja-pagina");
 
 
            $router->add("/",[
                "module"     => "frontend",
                "controller" => "index",
                "action"     => "index",
                "page"       => "home",
                "nomeseo"    => "home"
            ])->setName("frontend-home");
 
            $router->add("/([a-z0-9\-]+)",[
                "module"     => "frontend",
                "controller" => "categoria",
                "action"     => "index",
                "page"       => "marca",
                "nomeseo"    => "marca",
                "marcas"  => 1
            ])->setName("frontend-marca");
 
 
            $router->add("/busca",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "busca",
                "page"       => "busca",
                "nomeseo"    => "busca",
                "pagina"     => "0",
            ]);
 
             $router->add("/buscaFoward",[
                "action"     => "buscaFoward",
                "module"     => "frontend",
                "controller" => "busca",
                "page"       => "busca",
                "nomeseo"    => "busca",
                "pagina"     => "0",
            ]);
 
            $router->add("/sobre-nos",[
                "module"     => "frontend",
                "controller" => "welcome",
                "action"     => "index",
            ])->setName("frontend-home");
 
            $router->add("/not-found",[
                "module"     => "frontend",
                "controller" => "Notfound",
                "action"     => "index",
            ])->setName("frontend-notFound");
 
            $router->add("/marcas",[
                "module"     => "frontend",
                "controller" => "lojasmarcas",
                "action"     => "index",
                "page"       => "marcas",
                "nomeseo"    => "marcas"
            ])->setName("frontend-marcas");
 
            $router->add("/lojas",[
                "module"     => "frontend",
                "controller" => "lojasmarcas",
                "action"     => "index",
                "page"       => "lojas",
                "nomeseo"    => "lojas"
            ])->setName("frontend-lojas");
 
            $router->add("/cupom",[
                "module"     => "frontend",
                "controller" => "Cupom",
                "action"     => "index",
                "page"       => "cupons",
            ])->setName("frontend-cupom");
 
            $router->add("/cupom/{parceiro}",[
                "module"     => "frontend",
                "controller" => "Cupom",
                "action"     => "interno",
                "parceiro"   => 1,
                "page"       => "cupom",
            ])->setName("frontend-cupom-interno");
 
            $router->add("/vitrine/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "vitrine",
                "nomeseo"    => "vitrine",
                "tipo"       => 1,
                "slug"       => 2
            ]);
 
            $router->add("/materia/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "materia",
                "nomeseo"    => "materia",
                "tipo"       => 1,
                "slug"       => 2,
                "redir"      => true
            ]);
 
            $router->add("/looks",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "looks",
                "nomeseo"    => "looks",
                "pagina"     => "0"
            ]);
 
            $router->add("/historias",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "materias",
                "nomeseo"    => "materias",
                "pagina"     => "0"
            ]);
 
            $router->add("/historia/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "materia",
                "nomeseo"    => "materia",
                "tipo"       => 1,
                "slug"       => 2
            ])->setName("historia-single");
 
            $router->add("/vitrines",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "vitrines",
                "nomeseo"    => "vitrines",
                "pagina"     => "0"
            ]);
 
            $router->add("/moods",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "moods",
                "nomeseo"    => "moods",
                "pagina"     => "0"
            ]);
 
             $router->add("/look/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "look",
                "nomeseo"    => "look",
                "tipo"       => 1,
                "slug"       => 2
            ]);
 
             $router->add("/mood/{slug}",[
                "action"     => "index",
                "module"     => "frontend",
                "controller" => "conteudo",
                "page"       => "mood",
                "nomeseo"    => "mood",
                "tipo"       => 1,
                "slug"       => 2
            ]);
 
            $router->add("/termos-de-uso",[
                "module"     => "frontend",
                "controller" => "politicas",
                "action"     => "index",
                "parceiro"   => 1
            ])->setName("frontend-cupom-interno");
 
            $router->add("/tags",[
                "module"     => "frontend",
                "controller" => "tags",
                "action"     => "index",
                "page"       => "tags",
                "nomeseo"    => "tags"
            ])->setName("frontend-tags");
 
            $router->add("/materias",[
                "module"     => "frontend",
                "controller" => "tags",
                "action"     => "index",
                "page"       => "tags",
                "nomeseo"    => "tags"
            ])->setName("frontend-materias-tags");
 
 
            //API ROUTES
            $router->add("/api/:controller/:action/:params", [
                'module'     => 'api',
                'controller' => 1,
                'action'     => 2,
                'params'     => 3,
            ])->setName('api');
 
            $router->add("/api/:controller", [
                'module'     => 'api',
                'controller' => 1,
                'action'     => 'index',
            ])->setName('api');
 
            $router->add("/api", [
                'module'     => 'api',
                'controller' => 'index',
                'action'     => 'index',
            ])->setName('api');
 
 
            //BACKEND ROUTES
            $router->add("/backend/:controller/:action/:params", [
                'module'     => 'backend',
                'controller' => 1,
                'action'     => 2,
                'params'     => 3
            ])->setName('backend');
 
            $router->add("/backend/:controller", [
                'module'     => 'backend',
                'controller' => 1,
                'action'     => 'index',
 
            ])->setName('backend');
 
            $router->add("/backend", [
                'module'     => 'backend',
                'controller' => 'index',
                'action'     => 'index',
            ])->setName('backend');
 
            return $router;
        });
 
        $this->setDI($di);
    }
 
    public function main()
    {
 
        $this->registerServices();
 
        // Register the installed modules
        $this->registerModules([
            'frontend' => [
                'className' => 'Multiple\Frontend\Module',
                'path'      => '../apps/frontend/Module.php'
            ],
            'backend'  => [
                'className' => 'Multiple\Backend\Module',
                'path'      => '../apps/backend/Module.php'
            ],
            'api'  => [
                'className' => 'Multiple\api\Module',
                'path'      => '../apps/api/Module.php'
            ]
        ]);
 
        echo $this->handle()->getContent();
    }
}
 
$application = new Application();
$application->main();
KeyValue
_url/categoria/moda/roupas/blusas/5135833
KeyValue
REDIRECT_UNIQUE_IDW3tIfT1YwpRksYCrI6MIHgAAAAI
REDIRECT_STATUS200
UNIQUE_IDW3tIfT1YwpRksYCrI6MIHgAAAAI
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_HOSTwww.ilovee.com.br
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWAREApache/2.4.6 (CentOS) PHP/7.0.31
SERVER_NAMEwww.ilovee.com.br
SERVER_ADDR10.142.0.5
SERVER_PORT80
REMOTE_ADDR54.198.27.243
DOCUMENT_ROOT/var/www/iLove2.0/public
REQUEST_SCHEMEhttp
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT/var/www/iLove2.0/public
SERVER_ADMINwebmaster@localhost
SCRIPT_FILENAME/var/www/iLove2.0/public/index.php
REMOTE_PORT53032
REDIRECT_QUERY_STRING_url=/categoria/moda/roupas/blusas/5135833
REDIRECT_URL/categoria/moda/roupas/blusas/5135833
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.1
REQUEST_METHODGET
QUERY_STRING_url=/categoria/moda/roupas/blusas/5135833
REQUEST_URI/categoria/moda/roupas/blusas/5135833
SCRIPT_NAME/index.php
PHP_SELF/index.php
REQUEST_TIME_FLOAT1534806141.859
REQUEST_TIME1534806141
SOLR_HOSTNAME35.227.28.164
SOLR_LOGINadmin
SOLR_PASSWORDbarbademago
SOLR_PORT8983
DB_HOST35.231.84.7
DB_USERroot
DB_PASSWORDFzjLdN3wsLxv1pmy
DB_NAMEilove2
DB_CHARSETutf8mb4
#Path
0/var/www/iLove2.0/public/index.php
1/var/www/iLove2.0/vendor/autoload.php
2/var/www/iLove2.0/vendor/composer/autoload_real.php
3/var/www/iLove2.0/vendor/composer/ClassLoader.php
4/var/www/iLove2.0/vendor/composer/autoload_static.php
5/var/www/iLove2.0/vendor/guzzlehttp/psr7/src/functions_include.php
6/var/www/iLove2.0/vendor/guzzlehttp/psr7/src/functions.php
7/var/www/iLove2.0/vendor/league/uri-hostname-parser/src/functions_include.php
8/var/www/iLove2.0/vendor/league/uri-hostname-parser/src/functions.php
9/var/www/iLove2.0/vendor/league/uri-parser/src/functions_include.php
10/var/www/iLove2.0/vendor/league/uri-parser/src/functions.php
11/var/www/iLove2.0/vendor/guzzlehttp/promises/src/functions_include.php
12/var/www/iLove2.0/vendor/guzzlehttp/promises/src/functions.php
13/var/www/iLove2.0/vendor/league/uri-components/src/functions_include.php
14/var/www/iLove2.0/vendor/league/uri-components/src/functions.php
15/var/www/iLove2.0/vendor/league/uri-schemes/src/functions_include.php
16/var/www/iLove2.0/vendor/league/uri-schemes/src/functions.php
17/var/www/iLove2.0/vendor/league/uri-schemes/src/Schemes/deprecated.php
18/var/www/iLove2.0/vendor/league/uri-schemes/src/AbstractUri.php
19/var/www/iLove2.0/vendor/league/uri-interfaces/src/Uri.php
20/var/www/iLove2.0/vendor/league/uri-schemes/src/Data.php
21/var/www/iLove2.0/vendor/league/uri-schemes/src/File.php
22/var/www/iLove2.0/vendor/league/uri-schemes/src/Ftp.php
23/var/www/iLove2.0/vendor/league/uri-schemes/src/Http.php
24/var/www/iLove2.0/vendor/psr/http-message/src/UriInterface.php
25/var/www/iLove2.0/vendor/league/uri-schemes/src/Uri.php
26/var/www/iLove2.0/vendor/league/uri-schemes/src/UriException.php
27/var/www/iLove2.0/vendor/league/uri-parser/src/Exception.php
28/var/www/iLove2.0/vendor/league/uri-schemes/src/Ws.php
29/var/www/iLove2.0/vendor/guzzlehttp/guzzle/src/functions_include.php
30/var/www/iLove2.0/vendor/guzzlehttp/guzzle/src/functions.php
31/var/www/iLove2.0/vendor/league/uri-manipulations/src/functions_include.php
32/var/www/iLove2.0/vendor/league/uri-manipulations/src/Modifiers/functions.php
33/var/www/iLove2.0/vendor/league/uri-manipulations/src/functions.php
34/var/www/iLove2.0/vendor/mtdowling/jmespath.php/src/JmesPath.php
35/var/www/iLove2.0/vendor/swiftmailer/swiftmailer/lib/swift_required.php
36/var/www/iLove2.0/vendor/swiftmailer/swiftmailer/lib/classes/Swift.php
37/var/www/iLove2.0/vendor/aws/aws-sdk-php/src/functions.php
38/var/www/iLove2.0/apps/frontend/Module.php
39/var/www/iLove2.0/vendor/vlucas/phpdotenv/src/Dotenv.php
40/var/www/iLove2.0/vendor/vlucas/phpdotenv/src/Loader.php
41/var/www/iLove2.0/apps/helpers/StageVerification.php
42/var/www/iLove2.0/apps/frontend/controllers/NotfoundController.php
43/var/www/iLove2.0/apps/helpers/Helpers.php
44/var/www/iLove2.0/vendor/mobiledetect/mobiledetectlib/namespaced/Detection/MobileDetect.php
45/var/www/iLove2.0/vendor/mobiledetect/mobiledetectlib/Mobile_Detect.php
Memory
Usage2097152