Phalcon Framework - Delasport PHP port0.0.1 ALPHA 25.7

Phalcon\Mvc\Dispatcher\Exception: HelpController handler class cannot be loaded

/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/Dispatcher.php (140)
#0Phalcon\Mvc\Dispatcher->_throwDispatchException(HelpController handler class cannot be loaded, 2)
/var/www/1bet.com/vendor/phalcon/Phalcon/Dispatcher.php (450)
<?php
/*
 +------------------------------------------------------------------------+
 | Phalcon Framework                                                      |
 +------------------------------------------------------------------------+
 | Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com)       |
 +------------------------------------------------------------------------+
 | This source file is subject to the New BSD License that is bundled     |
 | with this package in the file docs/LICENSE.txt.                        |
 |                                                                        |
 | If you did not receive a copy of the license and are unable to         |
 | obtain it through the world-wide-web, please send an email             |
 | to license@phalconphp.com so we can send you a copy immediately.       |
 +------------------------------------------------------------------------+
 | Authors: Andres Gutierrez <andres@phalconphp.com>                      |
 |          Eduar Carvajal <eduar@phalconphp.com>                         |
 |          Rack Lin <racklin@gmail.com>                                  |
 +------------------------------------------------------------------------+
 */
 
namespace Phalcon;
 
/**
 * Phalcon\Dispatcher
 *
 * This is the base class for Phalcon\Mvc\Dispatcher and Phalcon\CLI\Dispatcher.
 * This class can't be instantiated directly, you can use it to create your own dispatchers
 */
abstract class Dispatcher implements \Phalcon\DispatcherInterface, \Phalcon\Di\InjectionAwareInterface, \Phalcon\Events\EventsAwareInterface
{
 
  const EXCEPTION_NO_DI         = 0;
 
  const EXCEPTION_CYCLIC_ROUTING     = 1;
 
  const EXCEPTION_HANDLER_NOT_FOUND   = 2;
 
  const EXCEPTION_INVALID_HANDLER   = 3;
 
  const EXCEPTION_INVALID_PARAMS     = 4;
 
  const EXCEPTION_ACTION_NOT_FOUND   = 5;
  
  protected
    $_params,
    $_finished,
    $_eventsManager,
    $_activeHandler,
    $_dependencyInjector,
    $_actionSuffix      = "Action",
    $_defaultAction     = "",
    $_handlerSuffix     = "",
    $_moduleName       = null,
    $_actionName       = null,
    $_handlerName       = null,
    $_lastHandler       = null,
    $_namespaceName     = null,
    $_returnedValue     = null,
    $_defaultHandler     = null,
    $_defaultNamespace     = null,
    $_previousActionName  = null,
    $_previousHandlerName  = null,
    $_forwarded       = false;
  
 
  /**
   * Phalcon\Dispatcher constructor
   *
   */
  public function __construct()
  {
    $this->_params = [];
  }
 
  /**
   * Sets the dependency injector
   *
   * @param Phalcon\DiInterface dependencyInjector
   */
  public function setDI(\Phalcon\DiInterface $dependencyInjector)
  {
    $this->_dependencyInjector = $dependencyInjector;
  }
 
  /**
   * Returns the internal dependency injector
   *
   * @return Phalcon\DiInterface
   */
  public function getDI()
  {
    return $this->_dependencyInjector;
  }
 
  /**
   * Sets the events manager
   *
   * @param Phalcon\Events\ManagerInterface eventsManager
   */
  public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager)
  {
    $this->_eventsManager = $eventsManager;
  }
 
  /**
   * Returns the internal event manager
   *
   * @return Phalcon\Events\ManagerInterface
   */
  public function getEventsManager()
  {
    return $this->_eventsManager;
  }
 
  /**
   * Sets the default action suffix
   *
   * @param string actionSuffix
   */
  public function setActionSuffix($actionSuffix)
  {
    $this->_actionSuffix = $actionSuffix;
  }
 
  /**
   * Sets the module where the controller is (only informative)
   *
   * @param string moduleName
   */
  public function setModuleName($moduleName)
  {
    $this->_moduleName = $moduleName;
  }
 
  /**
   * Gets the module where the controller class is
   *
   * @return string
   */
  public function getModuleName()
  {
    return $this->_moduleName;
  }
 
  /**
   * Sets the namespace where the controller class is
   *
   * @param string namespaceName
   */
  public function setNamespaceName($namespaceName)
  {
    $this->_namespaceName = $namespaceName;
  }
 
  /**
   * Gets a namespace to be prepended to the current handler name
   *
   * @return string
   */
  public function getNamespaceName()
  {
    return $this->_namespaceName;
  }
 
  /**
   * Sets the default namespace
   *
   * @param string namespaceName
   */
  public function setDefaultNamespace($namespaceName)
  {
    $this->_defaultNamespace = $namespaceName;
  }
 
  /**
   * Returns the default namespace
   *
   * @return string
   */
  public function getDefaultNamespace()
  {
    return $this->_defaultNamespace;
  }
 
  /**
   * Sets the default action name
   *
   * @param string actionName
   */
  public function setDefaultAction($actionName)
  {
    $this->_defaultAction = $actionName;
  }
 
  /**
   * Sets the action name to be dispatched
   *
   * @param string actionName
   */
  public function setActionName($actionName)
  {
    $this->_actionName = $actionName;
  }
 
  /**
   * Gets the latest dispatched action name
   *
   * @return string
   */
  public function getActionName()
  {
    return $this->_actionName;
  }
 
  /**
   * Sets action params to be dispatched
   *
   * @param array params
   */
  public function setParams($params)
  {
    if(!is_array($params))
    {
      $this->_throwDispatchException("Parameters must be an Array");
      return null;
    }
    $this->_params = $params;
  }
 
  /**
   * Gets action params
   *
   * @return array
   */
  public function getParams()
  {
    return $this->_params;
  }
 
  /**
   * Set a param by its name or numeric index
   *
   * @param  mixed param
   * @param  mixed value
   */
  public function setParam($param, $value)
  {
    $this->_params[$param] = $value;
  }
 
  /**
   * Gets a param by its name or numeric index
   *
   * @param  mixed param
   * @param  string|array filters
   * @param  mixed defaultValue
   * @return mixed
   */
  public function getParam($param, $filters = null, $defaultValue = null)
  {
    $params = $this->_params;
    if (isset($params[$param]))
    {
      $paramValue = $params[$param];
 
      if($filters !== null)
      {
        $dependencyInjector = $this->_dependencyInjector;
        
        if(!is_object($dependencyInjector))
        {
          $this->_throwDispatchException("A dependency injection object is required to access the 'filter' service", self::EXCEPTION_NO_DI);
        }
        
        $filter = $dependencyInjector->getShared("filter");
        return $filter->sanitize($paramValue, $filters);
        
      } 
      else 
      {
        return $paramValue;
      }
    }
    return $defaultValue;
  }
 
  /**
   * Returns the current method to be/executed in the dispatcher
   *
   * @return string
   */
  public function getActiveMethod()
  {
    return $this->_actionName . $this->_actionSuffix;
  }
 
  /**
   * Checks if the dispatch loop is finished or has more pendent controllers/tasks to dispatch
   *
   * @return boolean
   */
  public function isFinished()
  {
    return $this->_finished;
  }
 
  /**
   * Sets the latest returned value by an action manually
   *
   * @param mixed value
   */
  public function setReturnedValue($value)
  {
    $this->_returnedValue = $value;
  }
 
  /**
   * Returns value returned by the lastest dispatched action
   *
   * @return mixed
   */
  public function getReturnedValue()
  {
    return $this->_returnedValue;
  }
 
  /**
   * Dispatches a handle action taking into account the routing parameters
   *
   * @return object
   */
  public function dispatch()
  {
    $dependencyInjector = $this->_dependencyInjector;
    
    if(!is_object($dependencyInjector))
    {
      $this->_throwDispatchException("A dependency injection container is required to access related dispatching services", self::EXCEPTION_NO_DI);
      return false;
    }
 
    // Calling beforeDispatchLoop
    $eventsManager = $this->_eventsManager;
    if(is_object($eventsManager))
    {
      if($eventsManager->fire("dispatch:beforeDispatchLoop", $this) === false)
      {
        return false;
      }
    }
 
      $numberDispatches   = 0;
      $this->_finished   = false;
      $value         = null;
      $handler       = null;
      $actionSuffix     = $this->_actionSuffix;
      $handlerSuffix     = $this->_handlerSuffix;
 
    while(!$this->_finished)
    {
      $numberDispatches++;
 
      // Throw an exception after 256 consecutive forwards
      if($numberDispatches == 256)
      {
        $this->_throwDispatchException("Dispatcher has detected a cyclic routing causing stability problems", self::EXCEPTION_CYCLIC_ROUTING);
        break;
      }
 
      $this->_finished = true;
 
      // If the current namespace is null we used the set in this->_defaultNamespace
      $namespaceName = $this->_namespaceName;
      
      if(!$namespaceName)
      {
        $namespaceName       = $this->_defaultNamespace;
        $this->_namespaceName   = $namespaceName;
      }
 
      // If the handler is null we use the set in this->_defaultHandler
      $handlerName = $this->_handlerName;
      if(!$handlerName)
      {
        $handlerName     = $this->_defaultHandler;
        $this->_handlerName = $handlerName;
      }
 
      // If the action is null we use the set in this->_defaultAction
      $actionName = $this->_actionName;
      if(!$actionName)
      {
        $actionName     = $this->_defaultAction;
        $this->_actionName   = $actionName;
      }
 
      // Calling beforeDispatch
      if(is_object($eventsManager))
      {
        if($eventsManager->fire("dispatch:beforeDispatch", $this) === false)
        {
          continue;
        }
 
        // Check if the user made a forward in the listener
        if($this->_finished === false)
        {
          continue;
        }
      }
 
      // We don't camelize the classes if they are in namespaces
      if(!mb_strstr($handlerName, "\\"))
      {
        $camelizedClass = camelize($handlerName);
      } 
      else 
      {
        $camelizedClass = $handlerName;
      }
 
      // Create the complete controller class name prepending the namespace
      if($namespaceName)
      {
        if(ends_with(namespaceName, "\\"))
        {
          $handlerClass = $namespaceName . $camelizedClass . $handlerSuffix;
        } 
        else 
        {
          $handlerClass = $namespaceName . "\\" . $camelizedClass . $handlerSuffix;
        }
      } 
      else 
      {
        $handlerClass = $camelizedClass . $handlerSuffix;
      }
 
      // Handlers are retrieved as shared instances from the Service Container
      $hasService = (bool)$dependencyInjector->has($handlerClass);
      if(!$hasService)
      {
        // DI doesn't have a service with that name, try to load it using an autoloader
        $hasService = (bool)class_exists($handlerClass);
      }
 
      // If the service can be loaded we throw an exception
      if(!$hasService)
      {
        $status = $this->_throwDispatchException($handlerClass . " handler class cannot be loaded", self::EXCEPTION_HANDLER_NOT_FOUND);
        if($status === false)
        {
 
          // Check if the user made a forward in the listener
          if($this->_finished === false)
          {
            continue;
          }
        }
        break;
      }
 
      // Handlers must be only objects
      $handler = $dependencyInjector->getShared($handlerClass);
 
      // If the object was recently created in the DI we initialize it
      if($dependencyInjector->wasFreshInstance() === true)
      {
        $wasFresh = true;
      }
 
      if(!is_object($handler))
      {
        $status = $this->_throwDispatchException("Invalid handler returned from the services container", self::EXCEPTION_INVALID_HANDLER);
        if($status === false)
        {
          if($this->_finished === false)
          {
            continue;
          }
        }
        break;
      }
 
      $this->_activeHandler = $handler;
 
      // Check if the params is an array
      $params = $this->_params;
      if(!is_array($params))
      {
        // An invalid parameter variable was passed throw an exception
        $status = $this->_throwDispatchException("Action parameters must be an Array", self::EXCEPTION_INVALID_PARAMS);
        if($status === false)
        {
          if($this->_finished === false)
          {
            continue;
          }
        }
        break;
      }
 
      // Check if the method exists in the handler
      $actionMethod = $actionName . $actionSuffix;
      if(!method_exists($handler, $actionMethod))
      {
        // Call beforeNotFoundAction
        if(is_object($eventsManager))
        {
          if($eventsManager->fire("dispatch:beforeNotFoundAction", $this) === false)
          {
            continue;
          }
 
          if($this->_finished === false)
          {
            continue;
          }
        }
 
        // Try to throw an exception when an action isn't defined on the object
        $status = $this->_throwDispatchException("Action '" . $actionName . "' was not found on handler '" . $handlerName . "'", self::EXCEPTION_ACTION_NOT_FOUND);
        if($status === false)
        {
          if($this->_finished === false)
          {
            continue;
          }
        }
 
        break;
      }
 
      // Calling beforeExecuteRoute
      if(is_object($eventsManager))
      {
        if($eventsManager->fire("dispatch:beforeExecuteRoute", $this) === false)
        {
          continue;
        }
 
        // Check if the user made a forward in the listener
        if($this->_finished === false)
        {
          continue;
        }
      }
 
      // Calling beforeExecuteRoute as callback and event
      if(method_exists($handler, "beforeExecuteRoute"))
      {
        if($handler->beforeExecuteRoute($this) === false)
        {
          continue;
        }
 
        // Check if the user made a forward in the listener
        if($this->_finished === false)
        {
          continue;
        }
      }
 
      /**
       * Call the 'initialize' method just once per request
       */
      if($wasFresh === true)
      {
        if(method_exists($handler, "initialize"))
        {
          $handler->initialize();
        }
 
        /**
         * Calling afterInitialize
         */
        if($eventsManager)
        {
          if($eventsManager->fire("dispatch:afterInitialize", $this) === false)
          {
            continue;
          }
 
          // Check if the user made a forward in the listener
          if($this->_finished === false)
          {
            continue;
          }
        }
      }
 
      try 
      {
 
        // We update the latest value produced by the latest handler
          $this->_returnedValue   = call_user_func_array([$handler, $actionMethod], $params);
          $this->_lastHandler   = $handler;
 
      } 
      catch(\Exception $e) 
      {
        if($this->_handleException($e) === false)
        {
          if($this->_finished === false)
          {
            continue;
          }
        } 
        else 
        {
          throw $e;
        }
      }
 
      // Calling afterExecuteRoute
      if(is_object($eventsManager))
      {
 
        if($eventsManager->fire("dispatch:afterExecuteRoute", $this, $value) === false)
        {
          continue;
        }
 
        if($this->_finished === false)
        {
          continue;
        }
 
        // Call afterDispatch
        $eventsManager->fire("dispatch:afterDispatch", $this);
      }
 
      // Calling afterExecuteRoute as callback and event
      if(method_exists($handler, "afterExecuteRoute"))
      {
 
        if($handler->afterExecuteRoute($this, $value) === false)
        {
          continue;
        }
 
        if($this->_finished === false)
        {
          continue;
        }
      }
 
    }
 
    // Call afterDispatchLoop
    if(is_object($eventsManager))
    {
      $eventsManager->fire("dispatch:afterDispatchLoop", $this);
    }
 
    return $handler;
  }
 
  /**
   * Forwards the execution flow to another controller/action
   * Dispatchers are unique per module. Forwarding between modules is not allowed
   *
   *<code>
   *  $this->dispatcher->forward(array("controller" => "posts", "action" => "index"));
   *</code>
   *
   * @param array forward
   */
  public function forward($forward)
  {
 
    if(!is_array($forward))
    {
      $this->_throwDispatchException("Forward parameter must be an Array");
      return null;
    }
 
    // Check if we need to forward to another namespace
    if(isset($forward["namespace"]))
    {
      $namespaceName       = $forward["namespace"];
      $this->_namespaceName   = $namespaceName;
    }
 
    // Check if we need to forward to another controller
    if(isset($forward["controller"])) 
    {
      $controllerName = $forward["controller"];
        $this->_previousHandlerName = $this->_handlerName;
        $this->_handlerName     = $controllerName;
    } 
    else 
    {
      if(isset($forward["task"])) 
      {
        $taskName           = $forward["task"];
        $this->_previousHandlerName = $this->_handlerName;
        $this->_handlerName     = $taskName;
      }
    }
 
    // Check if we need to forward to another action
    if(isset($forward["action"])) 
    {
      $actionName         = $forward["action"];
      $this->_previousActionName   = $this->_actionName;
      $this->_actionName       = $actionName;
    }
 
    // Check if we need to forward changing the current parameters
    if(isset($forward["params"])) 
    {
      $params     = $forward["params"];
      $this->_params   = $params;
    }
 
    $this->_finished = false;
    $this->_forwarded = true;
  }
 
  /**
   * Check if the current executed action was forwarded by another one
   *
   * @return boolean
   */
  public function wasForwarded()
  {
    return $this->_forwarded;
  }
 
}
#1Phalcon\Dispatcher->dispatch()
/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/Application.php (379)
<?php
/*
 +------------------------------------------------------------------------+
 | Phalcon Framework                                                      |
 +------------------------------------------------------------------------+
 | Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com)       |
 +------------------------------------------------------------------------+
 | This source file is subject to the New BSD License that is bundled     |
 | with this package in the file docs/LICENSE.txt.                        |
 |                                                                        |
 | If you did not receive a copy of the license and are unable to         |
 | obtain it through the world-wide-web, please send an email             |
 | to license@phalconphp.com so we can send you a copy immediately.       |
 +------------------------------------------------------------------------+
 | Authors: Andres Gutierrez <andres@phalconphp.com>                      |
 |          Eduar Carvajal <eduar@phalconphp.com>                         |
 +------------------------------------------------------------------------+
 */
 
namespace Phalcon\Mvc;
 
use Phalcon\Mvc\Application\Exception;
use Phalcon\Mvc\ModuleDefinitionInterface;
use Phalcon\Mvc\RouterInterface;
use Phalcon\DiInterface;
use Phalcon\Http\ResponseInterface;
use Phalcon\Events\ManagerInterface;
use Phalcon\Mvc\DispatcherInterface;
 
/**
 * Phalcon\Mvc\Application
 *
 * This component encapsulates all the complex operations behind instantiating every component
 * needed and integrating it with the rest to allow the MVC pattern to operate as desired.
 *
 *<code>
 *
 * class Application extends \Phalcon\Mvc\Application
 * {
 *
 *    /**
 *     * Register the services here to make them general or register
 *     * in the ModuleDefinition to make them module-specific
 *     *\/
 *    protected function _registerServices()
 *    {
 *
 *    }
 *
 *    /**
 *     * This method registers all the modules in the application
 *     *\/
 *    public function main()
 *    {
 *      $this->registerModules(array(
 *        'frontend' => array(
 *          'className' => 'Multiple\Frontend\Module',
 *          'path' => '../apps/frontend/Module.php'
 *        ),
 *        'backend' => array(
 *          'className' => 'Multiple\Backend\Module',
 *          'path' => '../apps/backend/Module.php'
 *        )
 *      ));
 *    }
 *  }
 *
 *  $application = new Application();
 *  $application->main();
 *
 *</code>
 */
class Application extends \Phalcon\Di\Injectable
{
 
  protected
    $_defaultModule,
    $_modules,
    $_implicitView = true;
 
  /**
   * Phalcon\Mvc\Application
   *
   * @param Phalcon\DiInterface dependencyInjector
   */
  public function __construct(DiInterface $dependencyInjector = null)
  {
    if(is_object($dependencyInjector))
    {
      $this->_dependencyInjector = $dependencyInjector;
    }
  }
 
  /**
   * By default. The view is implicitly buffering all the output
   * You can full disable the view component using this method
   *
   * @param boolean implicitView
   * @return Phalcon\Mvc\Application
   */
  public function useImplicitView($implicitView)
  {
    $this->_implicitView = $implicitView;
    return $this;
  }
 
  /**
   * Register an array of modules present in the application
   *
   *<code>
   *  $this->registerModules(array(
   *    'frontend' => array(
   *      'className' => 'Multiple\Frontend\Module',
   *      'path' => '../apps/frontend/Module.php'
   *    ),
   *    'backend' => array(
   *      'className' => 'Multiple\Backend\Module',
   *      'path' => '../apps/backend/Module.php'
   *    )
   *  ));
   *</code>
   *
   * @param array modules
   * @param boolean merge
   * @param Phalcon\Mvc\Application
   */
  public function registerModules($modules, $merge = false)
  {
 
    if(!is_array($modules))
    {
      throw new Exception("Modules must be an Array");
    }
 
    if($merge === false)
    {
      $this->_modules = $modules;
    } 
    else 
    {
      $registeredModules = $this->_modules;
      if(is_array($registeredModules))
      {
        $this->_modules = array_merge($registeredModules, $modules);
      } 
      else 
      {
        $this->_modules = $modules;
      }
    }
 
    return $this;
  }
 
  /**
   * Return the modules registered in the application
   *
   * @return array
   */
  public function getModules()
  {
    return $this->_modules;
  }
 
  /**
   * Sets the module name to be used if the router doesn't return a valid module
   *
   * @param string defaultModule
   * @return Phalcon\Mvc\Application
   */
  public function setDefaultModule($defaultModule)
  {
    $this->_defaultModule = $defaultModule;
    return $this;
  }
 
  /**
   * Returns the default module name
   *
   * @return string
   */
  public function getDefaultModule()
  {
    return $this->_defaultModule;
  }
 
  /**
   * Handles a MVC request
   *
   * @param string uri
   * @return Phalcon\Http\ResponseInterface|boolean
   */
  public function handle($uri = null)
  {
  
    $dependencyInjector = $this->_dependencyInjector;
    if(!is_object($dependencyInjector))
    {
      throw new Exception("A dependency injection object is required to access internal services");
    }
 
    $eventsManager = $this->_eventsManager;
 
    /**
     * Call boot event, this allow the developer to perform initialization actions
     */
    if(is_object($eventsManager))
    {
      if($eventsManager->fire("application:boot", $this) === false)
      {
        return false;
      }
    }
 
    $router = $dependencyInjector->getShared("router");
 
    /**
     * Handle the URI pattern (if any)
     */
    $router->handle($uri);
 
    /**
     * If the router doesn't return a valid module we use the default module
     */
    $moduleName = $router->getModuleName();
    if(!$moduleName)
    {
      $moduleName = $this->_defaultModule;
    }
 
    $moduleObject = null;
 
    /**
     * Process the module definition
     */
    if($moduleName)
    {
 
      if (is_object($eventsManager))
      {
        if($eventsManager->fire("application:beforeStartModule", $this) === false)
        {
          return false;
        }
      }
 
      /**
       * Check if the module passed by the router is registered in the modules container
       */
      if(!isset($this->_modules[$moduleName]))
      {
        throw new Exception("Module '" . $moduleName . "' isn't registered in the application container");
      }
      $module = $this->_modules[$moduleName]; 
 
      /**
       * A module definition must ne an array or an object
       */
      if(!is_array($module))
      {
        if(!is_object($module))
        {
          throw new Exception("Invalid module definition");
        }
      }
 
      /**
       * An array module definition contains a path to a module definition class
       */
      if(is_array($module))
      {
 
        /**
         * Class name used to load the module definition
         */
        if(!isset($module["className"]))
        {
          $className = "Module";
        }
        $className = $module["className"];
 
        /**
         * If developer specify a path try to include the file
         */
        if(isset($module["path"])) 
        {
          $path = $module["path"];
          if(!class_exists($className, false))
          {
            if(file_exists($path))
            {
              require $path;
            } 
            else 
            {
              throw new Exception("Module definition path '" . $path . "' doesn't exist");
            }
          }
        }
 
        $moduleObject = $dependencyInjector->get($className);
 
        /**
         * 'registerAutoloaders' and 'registerServices' are automatically called
         */
        $moduleObject->registerAutoloaders($dependencyInjector);
        $moduleObject->registerServices($dependencyInjector);
 
      } 
      else 
      {
 
        /**
         * A module definition object, can be a Closure instance
         */
        if($module instanceof \Closure)
        {
          $moduleObject = call_user_func_array($module, [$dependencyInjector]);
        } 
        else 
        {
          throw new Exception("Invalid module definition");
        }
      }
 
      /**
       * Calling afterStartModule event
       */
      if(is_object($eventsManager))
      {
        $eventsManager->fire("application:afterStartModule", $this, $moduleObject);
      }
 
    }
 
    /**
     * Check whether use implicit views or not
     */
    $implicitView = $this->_implicitView;
 
    if($implicitView === true)
    {
      $view = $dependencyInjector->getShared("view");
    }
 
    /**
     * We get the parameters from the router and assign them to the dispatcher
     * Assign the values passed from the router
     */
    $dispatcher = $dependencyInjector->getShared("dispatcher");
    $dispatcher->setModuleName($router->getModuleName());
    $dispatcher->setNamespaceName($router->getNamespaceName());
    $dispatcher->setControllerName($router->getControllerName());
    $dispatcher->setActionName($router->getActionName());
    $dispatcher->setParams($router->getParams());
 
    /**
     * Start the view component (start output buffering)
     */
    if($implicitView === true)
    {
      $view->start();
    }
 
    /**
     * Calling beforeHandleRequest
     */
    if(is_object($eventsManager))
    {
      if($eventsManager->fire("application:beforeHandleRequest", $this, $dispatcher) === false)
      {
        return false;
      }
    }
 
    /**
     * The dispatcher must return an object
     */
    $controller = $dispatcher->dispatch();
 
    /**
     * Get the latest value returned by an action
     */
    $possibleResponse = $dispatcher->getReturnedValue();
    if(is_object($possibleResponse))
    {
      /**
       * Check if the returned object is already a response
       */
      $returnedResponse = $possibleResponse instanceof ResponseInterface;
    } 
    else 
    {
      $returnedResponse = false;
    }
 
    /**
     * Calling afterHandleRequest
     */
    if(is_object($eventsManager))
    {
      $eventsManager->fire("application:afterHandleRequest", $this, $controller);
    }
 
    /**
     * If the dispatcher returns an object we try to render the view in auto-rendering mode
     */
    if($returnedResponse === false)
    {
      if($implicitView === true)
      {
        if(is_object($controller))
        {
          $renderStatus = true;
 
          /**
           * This allows to make a custom view render
           */
          if(is_object($eventsManager))
          {
            $renderStatus = $eventsManager->fire("application:viewRender", $this, $view);
          }
 
          /**
           * Check if the view process has been treated by the developer
           */
          if($renderStatus !== false)
          {
            /**
             * Automatic render based on the latest controller executed
             */
            $view->render(
              $dispatcher->getControllerName(),
              $dispatcher->getActionName(),
              $dispatcher->getParams()
            );
          }
        }
      }
    }
 
    /**
     * Finish the view component (stop output buffering)
     */
    if($implicitView === true)
    {
      $view->finish();
    }
 
    if($returnedResponse === false)
    {
      $response = $dependencyInjector->getShared("response");
      if($implicitView === true)
      {
        /**
         * The content returned by the view is passed to the response service
         */
        $response->setContent($view->getContent());
      }
 
    } 
    else 
    {
      /**
       * We don't need to create a response because there is one already created
       */
      $response = $possibleResponse;
    }
 
    /**
     * Calling beforeSendResponse
     */
    if(is_object($eventsManager))
    {
      $eventsManager->fire("application:beforeSendResponse", $this, $response);
    }
 
    /**
     * Headers and Cookies are automatically send
     */
    $response->sendHeaders();
    $response->sendCookies();
 
    /**
     * Return the response
     */
    return $response;
  }
 
}
#2Phalcon\Mvc\Application->handle(/EN/help/index_en.htm)
/var/www/1bet.com/core/BootstrapHandler.php (153)
<?php
/**
 * Bootstrap handler
 *
 * @category Core libs
 * @package  Dela.Core.BootstrapHandler
 * @author   Delasport Team
 * @license  Delasport Company License https://www.delasport.com
 * @link   https://www.delasport.com
 */
 
namespace Dela\Core;
 
use Phalcon;
use Phalcon\Annotations\Adapter\Memory    as Annotations;
use Phalcon\Assets\Manager          as AssetManager;
//use Phalcon\Mvc\Controller          as Controller;
//use Phalcon\Db\Adapter\Pdo\Mysql      as Connection;
use Phalcon\Db\Profiler            as Profiler;
use Phalcon\Http\Response\Cookies      as Cookies;
use Phalcon\Crypt              as Crypt;
use Phalcon\Mvc\Dispatcher          as Dispatcher;
use Phalcon\Escaper              as Escaper;
use Phalcon\Events\Manager          as EventsManager;
use Phalcon\Filter              as Filter;
//use Phalcon\Logger\Adapter\File        as File;
use Phalcon\Session\Adapter\Files      as Files;
use Phalcon\Flash\Direct          as FlashDirect;
//use Phalcon\Flash\Session          as FlashSession;
//use Phalcon\Cache\Backend\File         as FileCache;
use Phalcon\Loader              as Loader;
//use Phalcon\Logger              as Logger;
use Dela\Core\Mapper            as Mapper;
//use Dela\Core\BaseSessionDatabaseAdapter  as BaseSessionDatabaseAdapter;
//use Phalcon\Mvc\Model            as Model;
//use Phalcon\Mvc\Model\Manager        as Manager;
//use Phalcon\Mvc\Model\MetaData\Memory    as Memory;
//use Phalcon\Cache\Backend\Memcache       as MemcacheBackend;
//use Phalcon\Cache\Frontend\Output       as OutputFrontend;
//use Phalcon\Mvc\Router            as Router;
use Dela\Core\Response            as Response;
// use Phalcon\Security            as Security;
use Dela\Core\Security            as Security;
use Phalcon\Session\Bag            as SessionBag;
//use Phalcon\DI\Service            as Service;
use Phalcon\Tag                as Tag;
//use Phalcon\Mvc\Model\Transaction\Manager  as TransactionManager;
//use Phalcon\Mvc\Url              as Url;
use Phalcon\Mvc\View            as View;
//use Phalcon\Mvc\View\Engine\Twig      as Twig;
 
use Propel\Common\Config\ConfigurationManager;
use Propel\Runtime\Propel;
use Propel\Runtime\Connection\ConnectionManagerSingle;
 
//use Monolog\Logger              as MonologLogger;
//use Monolog\Handler\StreamHandler      as MonologStreamHandler;
use Propel\Runtime\ServiceContainer\StandardServiceContainer;
 
class BootstrapHandler
{
  protected
 
    $_di     = null,
 
    $_called  = false,
 
    $_settings   = '',
 
    $_presets  = ['_cli_' => [/*@todo*/], '_api_' => [/*@todo*/], '_web_' => [/*@todo*/], '_full_' => [/*@todo*/], '_cron_' => [/*@todo*/],];
 
  /**
   * @param \stdClass $settings
   * retturns the whole application
   * <h1>Basic usage:</h1>
   * <h2>Steps:</h2>
   *     <ul>
   *       <li>Define the presets in the <strong>{APP_NAME}/app/config.php</strong> file, as follows</li>
   *       <li>
   *         <code>
   *          $config->services   = ['_web_','db'];
   *         </code>
   *       </li>
   *       <li>
   *         Base single framework services you can include in the configuration are:<br/>
   *         view - views and template engine configuration,<br/>
   *         router - router configuration,<br/>
   *         dispatcher - basic dispatcher configuration,<br/>
   *         response - response handling,<br/>
   *         request - request handling,<br/>
   *         url - url handling,<br/>
   *         modelsManager - models managing,<br/>
   *         modelsMetadata - models meta data handling,<br/>
   *         cookies - cookies handling,<br/>
   *         filter - filtering,<br/>
   *         escaper - escape,<br/>
   *         security - security classes,<br/>
   *         crypt - crypt api,<br/>
   *         annotations - annotations handling,<br/>
   *         flash - flash messages handling,<br/>
   *         flashSession - flash messages in the session handling,<br/>
   *         tag - tag generation,<br/>
   *         session - session handling,<br/>
   *         sessionBag - session handling per bag (controller),<br/>
   *         eventsManager - events manager handler,<br/>
   *         transactionManager - transaction manager,<br/>
   *         assets - basic asset handling,<br/>
   *         loader - basic loading directories,<br/>
   *         db - database handling
   *         profiler - a profiler
   *       </li>
   *       <li>
   *         Base built in framework configuration presets are marked with underscore (_) in its beginning and end, and they are:<br/>
   *         _web_  - basic web application including (@todo) services,<br/>
   *         _full_ - full stack application services<br/>
   *        _api_  - prebuilt services for api application including (@todo) services<br/>
   *        _cli_  - prebuilt services for cli application including (@todo) services<br/>
   *        _cron_  - prebuilt services for cli application including (@todo) services<br/>
   *       </li>
   *     </ul>
   *
   * <code>
   *
   * </code>
   */
  public function __construct(\stdClass $settings)
  {
    // Force UTF-8 for all PHP apps
    mb_internal_encoding('UTF-8');
    mb_http_input('UTF-8');
    mb_http_output('UTF-8');
    mb_regex_encoding('UTF-8');
 
    $this->_settings = $settings;
 
    $this->_InitLoader();
 
    $this->_di = new Phalcon\Di();
 
    $this->_setDiProperty('app', $this->_settings);
 
    $this->_settleDi($this->_settings->services);
 
    $this->_build();
  }
 
  /**
   * @return the framework
   */
  private function _build()
  {
    $return = new \Phalcon\Mvc\Application($this->_di);
    echo $return->handle($return->request->getUri())->getContent();
  }
 
  private function _settleDi(array $settings)
  {
    foreach ($settings as $service)
    {
      if(isset($this->_presets[$service]))
      {
        $this->_settleDi($this->_presets[$service]);
      }
      else
      {
        $service = '_Init'.ucfirst($service);
 
        if(method_exists($this, $service))
        {
          $this->$service();
        }
      }
    }
  }
 
  /**
   * @param string $name
   * @param mixed  $args
   */
  protected function _setDiProperty($name, $args, $shared = true)
  {
    $this->_di->set($name, $args, $shared);
  }
 
  /**
   * @return \Phalcon\Mvc\View
   * initializing the view
   */
  protected function _InitView()
  {
    $view = new View();
 
    $view->setViewsDir('../app/views/');
 
    $view->registerEngines(
        array(".volt" => 'Phalcon\Mvc\View\Engine\Twig')
    );
 
    $this->_setDiProperty('view', $view, true);
    $this->_setDiProperty('compiler', $view, true);
  }
 
  /**
  * @return Router
  * initializing the router
  */
  protected function _InitRouter()
  {
    $this->_setDiProperty(
      'router',
      function()
       {
        $router = Mapper::getInstance($this->_di);
 
        return $router;
      },
      true //shared DI property
    );
  }
 
  /**
   * @return Dispatcher
   * initializing the dispatcher
   */
  protected function _InitDispatcher()
  {
    $this->_setDiProperty(
      'dispatcher',
      function()
      {
        return new Dispatcher();
      }
    );
  }
 
  /**
   * @return Response
   * initializing the dispatcher
   */
  protected function _InitResponse()
  {
    $this->_setDiProperty(
      'response',
      function()
      {
        return new Response();
      }
    );
  }
 
  /**
   * @return request
   * initializing the dispatcher
   */
  protected function _InitRequest()
  {
    $this->_setDiProperty(
      'request',
      function()
      {
        return new Request();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Mvc\Url
   *
   */
  protected function _InitUrl()
  {
    $this->_setDiProperty(
      'url',
      function()
      {
        $return = new UrlHelper();
        //$return->setBaseUri($this->_settings->BASE_URI);
        return $return;
      }
    );
  }
 
  /**
   * @return  new Phalcon\Mvc\Model\Manager
   *
   */
  protected function _InitModelsManager()
  {
    $this->_setDiProperty(
      'modelsManager',
      function()
      {
        return new Manager();
      }
    );
  }
 
  /**
   * @return  \Dela\Core\Acl
   *
   */
  protected function _InitAcl()
  {
    $this->_setDiProperty(
      'acl',
      function()
      {
        return new \Dela\Core\Acl();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Mvc\Model\MetaData\Memory
   *
   */
  protected function _InitModelsMetadata()
  {
    $this->_setDiProperty(
      'modelsMetadata',
      function()
      {
        return new Memory();
      }
    );
  }
 
  /**
   * @return  \Dela\Core\MemcacheAdapter
   *
   */
  protected function _InitMemcacheAdapter()
  {
    $this->_setDiProperty(
      'memcacheAdapter',
      function ()
      {
        return new MemcacheAdapter($this->_settings->MEMCACHE_SETTINGS_FRONTEND);
      }
    );
  }
 
  /**
   * @return  new Phalcon\Http\Response\Cookies
   *
   */
  protected function _InitCookies()
  {
    $this->_setDiProperty(
      'cookies',
      function()
      {
        return new Cookies();
      }
    );
  }
 
  /**
  * @return  new Phalcon\Filter
  *
  */
  protected function _InitFilter()
  {
    $this->_setDiProperty(
      'filter',
      function()
      {
        return new Filter();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Escaper
   *
   */
  protected function _InitEscaper()
  {
    $this->_setDiProperty(
      'escaper',
      function()
      {
        return new Escaper();
      }
    );
  }
 
  /**
  * @return  new Phalcon\Security
  *
  */
  protected function _InitSecurity()
  {
    $this->_setDiProperty(
      'security',
      function()
      {
        return new Security();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Crypt
   *
   */
  protected function _InitCrypt()
  {
    $this->_setDiProperty(
      'crypt',
      function()
      {
        $crypt = new Crypt();
        $crypt->setKey($this->_settings->CRYPT_KEY);
        return $crypt;
      }
    );
  }
 
  /**
   * @return  new Phalcon\Annotations\Adapter\Memory
   *
   */
  protected function _InitAnnotations()
  {
    $this->_setDiProperty(
      'annotations',
      function()
      {
        return  new Annotations();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Flash\Direct
   *
   */
  protected function _InitFlash()
  {
    $this->_setDiProperty(
      'flash',
      function()
      {
        return new FlashDirect();
      }
    );
  }
 
  /**
  * @return  new Phalcon\Flash\Session
  *
  */
  protected function _InitFlashSession()
  {
    $this->_setDiProperty(
      'flashSession',
      function()
      {
        return new FlashMessageHelper();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Tag
   *
   */
  protected function _InitTag()
  {
    $this->_setDiProperty(
      'tag',
      function()
      {
        return new Tag();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Session\Adapter\Files
   *
   */
  protected function _InitSession()
  {
    $this->_setDiProperty(
      'session',
      function()
      {
        $cookieParams = isset($this->_settings->COOKIE_PARAMS) && is_array($this->_settings->COOKIE_PARAMS) ? $this->_settings->COOKIE_PARAMS :
          [
            'lifetime'  => 0,
            'path'    => '/',
            'domain'  => '.' . $this->_settings->APP_NAME . '-delasport.com',
            'secure'  => 0,
            'httponly'  => 1,
            'cookieName'=> 'DELASESS',
          ];
          $cookieParams['cookieName'] = 'DELASESS';
 
          // Hash algorithm to use for the sessionid. (use hash_algos() to get a list of available hashes.)
          $session_hash = 'sha512';
          if (in_array($session_hash, hash_algos()))
          {
            // Set the has function.
            ini_set('session.hash_function', $session_hash);
          }
          // How many bits per character of the hash.
          // The possible values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-", ",").
          ini_set('session.hash_bits_per_character', 5);
 
          // Force the session to only use cookies, not URL variables.
          ini_set('session.use_only_cookies', 1);
          // Set the parameters
          session_set_cookie_params(
            $cookieParams["lifetime"],
            $cookieParams["path"],
            $cookieParams["domain"],
            $cookieParams["secure"],
            $cookieParams["httponly"]
          );
 
          // dd($this->cookieParams);
          // $cookieParams = session_get_cookie_params();
          // Change the session name
          session_name($cookieParams['cookieName']);
 
        if(isset($this->_settings->SESSION_SAVE_PATH) && !file_exists(session_save_path()))
        {
          $dirPath = session_save_path();
 
          if(is_writable(dirname($dirPath)))
          {
            mkdir($dirPath);
          }
          else
          {
            throw new \Exception('Session folder is not present');
          }
        }
 
        $session = new Files();
 
        $session->start();
 
        return $session;
      },
      true
    );
  }
 
  /**
   * @return new Phalcon\Session\Bag
   *
   */
  protected function _InitSessionBag()
  {
    $this->_setDiProperty(
      'sessionBag',
      function()
      {
        return new SessionBag($this->_settings->SESSION_BAG_NAME);
      }
    );
  }
 
  /**
   * @return  new Phalcon\Events\Manager
   *
   */
  protected function _InitEventsManager()
  {
    $this->_setDiProperty(
      'eventsManager',
      function()
      {
        return new EventsManager();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Mvc\Model\Transaction\Manager
   *
   */
  protected function _InitTransactionManager()
  {
    $this->_setDiProperty(
      'transactionManager',
      function()
      {
        return new TransactionManager();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Assets\Manager
   *
   */
  protected function _InitAssets()
  {
    $this->_setDiProperty(
      'assets',
      function()
      {
        return new AssetManager();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Loader
   *
   */
  protected function _InitLoader()
  {
    $includeDirs = [
      $this->_settings->MODELS_PATH      ,
      $this->_settings->MODELS_HANDLERS_PATH  ,
      $this->_settings->CONVERTERS_PATH    ,
      $this->_settings->HANDLERS_PATH      ,
      $this->_settings->CONTROLLERS_PATH    ,
      $this->_settings->LIBRARIES_PATH    ,
      $this->_settings->HELPERS_PATH      ,
      $this->_settings->FORMS_PATH      ,
    ];
 
    if (isset($this->_settings->OTHER_INCLUDE_PATHS))
    {
      $includeDirs = array_merge($includeDirs, $this->_settings->OTHER_INCLUDE_PATHS);
    }
 
    if (isset($this->_settings->OTHER_INCLUDE_PATHS_RECURSIVE) && is_array($this->_settings->OTHER_INCLUDE_PATHS_RECURSIVE))
    {
      foreach ($this->_settings->OTHER_INCLUDE_PATHS_RECURSIVE as $path)
      {
        if (file_exists($path))
        {
          $iterator = new \RecursiveIteratorIterator(
            new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS),
            \RecursiveIteratorIterator::SELF_FIRST
          );
 
          foreach ($iterator as $file)
          {
            if ($file->isDir())
            {
              $includeDirs[] = $file->getRealpath();
            }
          }
        }
      }
    }
 
    (new Loader())->registerDirs($includeDirs)->register();
  }
 
  /**
   * @return new Dela\Localizer
   *
   */
  protected function _InitLocalizer()
  {
    $this->_setDiProperty(
      'localizer',
      function()
      {
        return \Dela\Core\Localizer::getInstance($this->_di);
      },
      true
    );
  }
 
  /**
   * @return \Phalcon\Db\Profiler
   *
   */
  private function _InitProfiler()
  {
    $this->_setDiProperty(
      'profiler',
      function()
      {
        return new Profiler();
      },
      true
    );
  }
 
  /**
   * Initializes the DB through Propel
   *
   */
  private function _InitDb()
  {
    $config = $this->_settings->DB;
 
    /** @var StandardServiceContainer $serviceContainer */
    $serviceContainer = Propel::getServiceContainer();
 
    // Model directories for autoloading
    $directories = [];
 
    foreach ($config['propel']['database']['connections'] as $name => $connection)
    {
      array_push($directories, $this->_settings->MODELS_PATH . $name . DIRECTORY_SEPARATOR);
 
      $serviceContainer->setAdapterClass($name, 'mysql');
 
      $manager = new ConnectionManagerSingle();
      $manager->setConfiguration([
        'dsn'    => $connection['dsn'],
        'user'    => $connection['user'],
        'password'  => $connection['password'],
      ]);
 
      $serviceContainer->setConnectionManager($name, $manager);
    }
 
    $conf = new ConfigurationManager($this->_di->get('app')->APP_PATH . 'config' . DIRECTORY_SEPARATOR . 'propel.php');
 
    (new Loader())->registerDirs($directories)->register();
 
    // Add monolog logger to service container
    /*$defaultLogger = new MonologLogger('defaultLogger');
    $defaultLogger->pushHandler(new MonologStreamHandler('propel.log'), Logger::DEBUG);
    $serviceContainer->setLogger('defaultLogger', $defaultLogger);
 
    \Propel\Runtime\Propel::getWriteConnection('primary')->useDebug(true);*/
 
    $this->_di->setShared(
      'db',
      function()
      {
        return \Propel\Runtime\Propel::getWriteConnection('primary');
      }
    );
  }
}
 
class PhpFunctionExtension
{
  /**
   * This method is called on any attempt to compile a function call
   */
  public function compileFunction($name, $arguments)
  {
    if (function_exists($name)) {
      return $name . '('. $arguments . ')';
    }
  }
}
#3Dela\Core\BootstrapHandler->_build()
/var/www/1bet.com/core/BootstrapHandler.php (144)
<?php
/**
 * Bootstrap handler
 *
 * @category Core libs
 * @package  Dela.Core.BootstrapHandler
 * @author   Delasport Team
 * @license  Delasport Company License https://www.delasport.com
 * @link   https://www.delasport.com
 */
 
namespace Dela\Core;
 
use Phalcon;
use Phalcon\Annotations\Adapter\Memory    as Annotations;
use Phalcon\Assets\Manager          as AssetManager;
//use Phalcon\Mvc\Controller          as Controller;
//use Phalcon\Db\Adapter\Pdo\Mysql      as Connection;
use Phalcon\Db\Profiler            as Profiler;
use Phalcon\Http\Response\Cookies      as Cookies;
use Phalcon\Crypt              as Crypt;
use Phalcon\Mvc\Dispatcher          as Dispatcher;
use Phalcon\Escaper              as Escaper;
use Phalcon\Events\Manager          as EventsManager;
use Phalcon\Filter              as Filter;
//use Phalcon\Logger\Adapter\File        as File;
use Phalcon\Session\Adapter\Files      as Files;
use Phalcon\Flash\Direct          as FlashDirect;
//use Phalcon\Flash\Session          as FlashSession;
//use Phalcon\Cache\Backend\File         as FileCache;
use Phalcon\Loader              as Loader;
//use Phalcon\Logger              as Logger;
use Dela\Core\Mapper            as Mapper;
//use Dela\Core\BaseSessionDatabaseAdapter  as BaseSessionDatabaseAdapter;
//use Phalcon\Mvc\Model            as Model;
//use Phalcon\Mvc\Model\Manager        as Manager;
//use Phalcon\Mvc\Model\MetaData\Memory    as Memory;
//use Phalcon\Cache\Backend\Memcache       as MemcacheBackend;
//use Phalcon\Cache\Frontend\Output       as OutputFrontend;
//use Phalcon\Mvc\Router            as Router;
use Dela\Core\Response            as Response;
// use Phalcon\Security            as Security;
use Dela\Core\Security            as Security;
use Phalcon\Session\Bag            as SessionBag;
//use Phalcon\DI\Service            as Service;
use Phalcon\Tag                as Tag;
//use Phalcon\Mvc\Model\Transaction\Manager  as TransactionManager;
//use Phalcon\Mvc\Url              as Url;
use Phalcon\Mvc\View            as View;
//use Phalcon\Mvc\View\Engine\Twig      as Twig;
 
use Propel\Common\Config\ConfigurationManager;
use Propel\Runtime\Propel;
use Propel\Runtime\Connection\ConnectionManagerSingle;
 
//use Monolog\Logger              as MonologLogger;
//use Monolog\Handler\StreamHandler      as MonologStreamHandler;
use Propel\Runtime\ServiceContainer\StandardServiceContainer;
 
class BootstrapHandler
{
  protected
 
    $_di     = null,
 
    $_called  = false,
 
    $_settings   = '',
 
    $_presets  = ['_cli_' => [/*@todo*/], '_api_' => [/*@todo*/], '_web_' => [/*@todo*/], '_full_' => [/*@todo*/], '_cron_' => [/*@todo*/],];
 
  /**
   * @param \stdClass $settings
   * retturns the whole application
   * <h1>Basic usage:</h1>
   * <h2>Steps:</h2>
   *     <ul>
   *       <li>Define the presets in the <strong>{APP_NAME}/app/config.php</strong> file, as follows</li>
   *       <li>
   *         <code>
   *          $config->services   = ['_web_','db'];
   *         </code>
   *       </li>
   *       <li>
   *         Base single framework services you can include in the configuration are:<br/>
   *         view - views and template engine configuration,<br/>
   *         router - router configuration,<br/>
   *         dispatcher - basic dispatcher configuration,<br/>
   *         response - response handling,<br/>
   *         request - request handling,<br/>
   *         url - url handling,<br/>
   *         modelsManager - models managing,<br/>
   *         modelsMetadata - models meta data handling,<br/>
   *         cookies - cookies handling,<br/>
   *         filter - filtering,<br/>
   *         escaper - escape,<br/>
   *         security - security classes,<br/>
   *         crypt - crypt api,<br/>
   *         annotations - annotations handling,<br/>
   *         flash - flash messages handling,<br/>
   *         flashSession - flash messages in the session handling,<br/>
   *         tag - tag generation,<br/>
   *         session - session handling,<br/>
   *         sessionBag - session handling per bag (controller),<br/>
   *         eventsManager - events manager handler,<br/>
   *         transactionManager - transaction manager,<br/>
   *         assets - basic asset handling,<br/>
   *         loader - basic loading directories,<br/>
   *         db - database handling
   *         profiler - a profiler
   *       </li>
   *       <li>
   *         Base built in framework configuration presets are marked with underscore (_) in its beginning and end, and they are:<br/>
   *         _web_  - basic web application including (@todo) services,<br/>
   *         _full_ - full stack application services<br/>
   *        _api_  - prebuilt services for api application including (@todo) services<br/>
   *        _cli_  - prebuilt services for cli application including (@todo) services<br/>
   *        _cron_  - prebuilt services for cli application including (@todo) services<br/>
   *       </li>
   *     </ul>
   *
   * <code>
   *
   * </code>
   */
  public function __construct(\stdClass $settings)
  {
    // Force UTF-8 for all PHP apps
    mb_internal_encoding('UTF-8');
    mb_http_input('UTF-8');
    mb_http_output('UTF-8');
    mb_regex_encoding('UTF-8');
 
    $this->_settings = $settings;
 
    $this->_InitLoader();
 
    $this->_di = new Phalcon\Di();
 
    $this->_setDiProperty('app', $this->_settings);
 
    $this->_settleDi($this->_settings->services);
 
    $this->_build();
  }
 
  /**
   * @return the framework
   */
  private function _build()
  {
    $return = new \Phalcon\Mvc\Application($this->_di);
    echo $return->handle($return->request->getUri())->getContent();
  }
 
  private function _settleDi(array $settings)
  {
    foreach ($settings as $service)
    {
      if(isset($this->_presets[$service]))
      {
        $this->_settleDi($this->_presets[$service]);
      }
      else
      {
        $service = '_Init'.ucfirst($service);
 
        if(method_exists($this, $service))
        {
          $this->$service();
        }
      }
    }
  }
 
  /**
   * @param string $name
   * @param mixed  $args
   */
  protected function _setDiProperty($name, $args, $shared = true)
  {
    $this->_di->set($name, $args, $shared);
  }
 
  /**
   * @return \Phalcon\Mvc\View
   * initializing the view
   */
  protected function _InitView()
  {
    $view = new View();
 
    $view->setViewsDir('../app/views/');
 
    $view->registerEngines(
        array(".volt" => 'Phalcon\Mvc\View\Engine\Twig')
    );
 
    $this->_setDiProperty('view', $view, true);
    $this->_setDiProperty('compiler', $view, true);
  }
 
  /**
  * @return Router
  * initializing the router
  */
  protected function _InitRouter()
  {
    $this->_setDiProperty(
      'router',
      function()
       {
        $router = Mapper::getInstance($this->_di);
 
        return $router;
      },
      true //shared DI property
    );
  }
 
  /**
   * @return Dispatcher
   * initializing the dispatcher
   */
  protected function _InitDispatcher()
  {
    $this->_setDiProperty(
      'dispatcher',
      function()
      {
        return new Dispatcher();
      }
    );
  }
 
  /**
   * @return Response
   * initializing the dispatcher
   */
  protected function _InitResponse()
  {
    $this->_setDiProperty(
      'response',
      function()
      {
        return new Response();
      }
    );
  }
 
  /**
   * @return request
   * initializing the dispatcher
   */
  protected function _InitRequest()
  {
    $this->_setDiProperty(
      'request',
      function()
      {
        return new Request();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Mvc\Url
   *
   */
  protected function _InitUrl()
  {
    $this->_setDiProperty(
      'url',
      function()
      {
        $return = new UrlHelper();
        //$return->setBaseUri($this->_settings->BASE_URI);
        return $return;
      }
    );
  }
 
  /**
   * @return  new Phalcon\Mvc\Model\Manager
   *
   */
  protected function _InitModelsManager()
  {
    $this->_setDiProperty(
      'modelsManager',
      function()
      {
        return new Manager();
      }
    );
  }
 
  /**
   * @return  \Dela\Core\Acl
   *
   */
  protected function _InitAcl()
  {
    $this->_setDiProperty(
      'acl',
      function()
      {
        return new \Dela\Core\Acl();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Mvc\Model\MetaData\Memory
   *
   */
  protected function _InitModelsMetadata()
  {
    $this->_setDiProperty(
      'modelsMetadata',
      function()
      {
        return new Memory();
      }
    );
  }
 
  /**
   * @return  \Dela\Core\MemcacheAdapter
   *
   */
  protected function _InitMemcacheAdapter()
  {
    $this->_setDiProperty(
      'memcacheAdapter',
      function ()
      {
        return new MemcacheAdapter($this->_settings->MEMCACHE_SETTINGS_FRONTEND);
      }
    );
  }
 
  /**
   * @return  new Phalcon\Http\Response\Cookies
   *
   */
  protected function _InitCookies()
  {
    $this->_setDiProperty(
      'cookies',
      function()
      {
        return new Cookies();
      }
    );
  }
 
  /**
  * @return  new Phalcon\Filter
  *
  */
  protected function _InitFilter()
  {
    $this->_setDiProperty(
      'filter',
      function()
      {
        return new Filter();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Escaper
   *
   */
  protected function _InitEscaper()
  {
    $this->_setDiProperty(
      'escaper',
      function()
      {
        return new Escaper();
      }
    );
  }
 
  /**
  * @return  new Phalcon\Security
  *
  */
  protected function _InitSecurity()
  {
    $this->_setDiProperty(
      'security',
      function()
      {
        return new Security();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Crypt
   *
   */
  protected function _InitCrypt()
  {
    $this->_setDiProperty(
      'crypt',
      function()
      {
        $crypt = new Crypt();
        $crypt->setKey($this->_settings->CRYPT_KEY);
        return $crypt;
      }
    );
  }
 
  /**
   * @return  new Phalcon\Annotations\Adapter\Memory
   *
   */
  protected function _InitAnnotations()
  {
    $this->_setDiProperty(
      'annotations',
      function()
      {
        return  new Annotations();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Flash\Direct
   *
   */
  protected function _InitFlash()
  {
    $this->_setDiProperty(
      'flash',
      function()
      {
        return new FlashDirect();
      }
    );
  }
 
  /**
  * @return  new Phalcon\Flash\Session
  *
  */
  protected function _InitFlashSession()
  {
    $this->_setDiProperty(
      'flashSession',
      function()
      {
        return new FlashMessageHelper();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Tag
   *
   */
  protected function _InitTag()
  {
    $this->_setDiProperty(
      'tag',
      function()
      {
        return new Tag();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Session\Adapter\Files
   *
   */
  protected function _InitSession()
  {
    $this->_setDiProperty(
      'session',
      function()
      {
        $cookieParams = isset($this->_settings->COOKIE_PARAMS) && is_array($this->_settings->COOKIE_PARAMS) ? $this->_settings->COOKIE_PARAMS :
          [
            'lifetime'  => 0,
            'path'    => '/',
            'domain'  => '.' . $this->_settings->APP_NAME . '-delasport.com',
            'secure'  => 0,
            'httponly'  => 1,
            'cookieName'=> 'DELASESS',
          ];
          $cookieParams['cookieName'] = 'DELASESS';
 
          // Hash algorithm to use for the sessionid. (use hash_algos() to get a list of available hashes.)
          $session_hash = 'sha512';
          if (in_array($session_hash, hash_algos()))
          {
            // Set the has function.
            ini_set('session.hash_function', $session_hash);
          }
          // How many bits per character of the hash.
          // The possible values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-", ",").
          ini_set('session.hash_bits_per_character', 5);
 
          // Force the session to only use cookies, not URL variables.
          ini_set('session.use_only_cookies', 1);
          // Set the parameters
          session_set_cookie_params(
            $cookieParams["lifetime"],
            $cookieParams["path"],
            $cookieParams["domain"],
            $cookieParams["secure"],
            $cookieParams["httponly"]
          );
 
          // dd($this->cookieParams);
          // $cookieParams = session_get_cookie_params();
          // Change the session name
          session_name($cookieParams['cookieName']);
 
        if(isset($this->_settings->SESSION_SAVE_PATH) && !file_exists(session_save_path()))
        {
          $dirPath = session_save_path();
 
          if(is_writable(dirname($dirPath)))
          {
            mkdir($dirPath);
          }
          else
          {
            throw new \Exception('Session folder is not present');
          }
        }
 
        $session = new Files();
 
        $session->start();
 
        return $session;
      },
      true
    );
  }
 
  /**
   * @return new Phalcon\Session\Bag
   *
   */
  protected function _InitSessionBag()
  {
    $this->_setDiProperty(
      'sessionBag',
      function()
      {
        return new SessionBag($this->_settings->SESSION_BAG_NAME);
      }
    );
  }
 
  /**
   * @return  new Phalcon\Events\Manager
   *
   */
  protected function _InitEventsManager()
  {
    $this->_setDiProperty(
      'eventsManager',
      function()
      {
        return new EventsManager();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Mvc\Model\Transaction\Manager
   *
   */
  protected function _InitTransactionManager()
  {
    $this->_setDiProperty(
      'transactionManager',
      function()
      {
        return new TransactionManager();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Assets\Manager
   *
   */
  protected function _InitAssets()
  {
    $this->_setDiProperty(
      'assets',
      function()
      {
        return new AssetManager();
      }
    );
  }
 
  /**
   * @return  new Phalcon\Loader
   *
   */
  protected function _InitLoader()
  {
    $includeDirs = [
      $this->_settings->MODELS_PATH      ,
      $this->_settings->MODELS_HANDLERS_PATH  ,
      $this->_settings->CONVERTERS_PATH    ,
      $this->_settings->HANDLERS_PATH      ,
      $this->_settings->CONTROLLERS_PATH    ,
      $this->_settings->LIBRARIES_PATH    ,
      $this->_settings->HELPERS_PATH      ,
      $this->_settings->FORMS_PATH      ,
    ];
 
    if (isset($this->_settings->OTHER_INCLUDE_PATHS))
    {
      $includeDirs = array_merge($includeDirs, $this->_settings->OTHER_INCLUDE_PATHS);
    }
 
    if (isset($this->_settings->OTHER_INCLUDE_PATHS_RECURSIVE) && is_array($this->_settings->OTHER_INCLUDE_PATHS_RECURSIVE))
    {
      foreach ($this->_settings->OTHER_INCLUDE_PATHS_RECURSIVE as $path)
      {
        if (file_exists($path))
        {
          $iterator = new \RecursiveIteratorIterator(
            new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS),
            \RecursiveIteratorIterator::SELF_FIRST
          );
 
          foreach ($iterator as $file)
          {
            if ($file->isDir())
            {
              $includeDirs[] = $file->getRealpath();
            }
          }
        }
      }
    }
 
    (new Loader())->registerDirs($includeDirs)->register();
  }
 
  /**
   * @return new Dela\Localizer
   *
   */
  protected function _InitLocalizer()
  {
    $this->_setDiProperty(
      'localizer',
      function()
      {
        return \Dela\Core\Localizer::getInstance($this->_di);
      },
      true
    );
  }
 
  /**
   * @return \Phalcon\Db\Profiler
   *
   */
  private function _InitProfiler()
  {
    $this->_setDiProperty(
      'profiler',
      function()
      {
        return new Profiler();
      },
      true
    );
  }
 
  /**
   * Initializes the DB through Propel
   *
   */
  private function _InitDb()
  {
    $config = $this->_settings->DB;
 
    /** @var StandardServiceContainer $serviceContainer */
    $serviceContainer = Propel::getServiceContainer();
 
    // Model directories for autoloading
    $directories = [];
 
    foreach ($config['propel']['database']['connections'] as $name => $connection)
    {
      array_push($directories, $this->_settings->MODELS_PATH . $name . DIRECTORY_SEPARATOR);
 
      $serviceContainer->setAdapterClass($name, 'mysql');
 
      $manager = new ConnectionManagerSingle();
      $manager->setConfiguration([
        'dsn'    => $connection['dsn'],
        'user'    => $connection['user'],
        'password'  => $connection['password'],
      ]);
 
      $serviceContainer->setConnectionManager($name, $manager);
    }
 
    $conf = new ConfigurationManager($this->_di->get('app')->APP_PATH . 'config' . DIRECTORY_SEPARATOR . 'propel.php');
 
    (new Loader())->registerDirs($directories)->register();
 
    // Add monolog logger to service container
    /*$defaultLogger = new MonologLogger('defaultLogger');
    $defaultLogger->pushHandler(new MonologStreamHandler('propel.log'), Logger::DEBUG);
    $serviceContainer->setLogger('defaultLogger', $defaultLogger);
 
    \Propel\Runtime\Propel::getWriteConnection('primary')->useDebug(true);*/
 
    $this->_di->setShared(
      'db',
      function()
      {
        return \Propel\Runtime\Propel::getWriteConnection('primary');
      }
    );
  }
}
 
class PhpFunctionExtension
{
  /**
   * This method is called on any attempt to compile a function call
   */
  public function compileFunction($name, $arguments)
  {
    if (function_exists($name)) {
      return $name . '('. $arguments . ')';
    }
  }
}
#4Dela\Core\BootstrapHandler->__construct(Object(stdClass))
/var/www/1bet.com/front_end/core/BootstrapHandler.php (7)
<?php
 
class BootstrapHandler extends \Dela\Core\BootstrapHandler
{
  public function __construct(\stdClass $settings)
  {
    parent::__construct($settings);
  }
 
  /**
   * @return  new Phalcon\Loader
   *
   */
  protected function _InitLoader()
  {
    global $loader;
 
    $includeDirs = [
      $this->_settings->CONVERTERS_PATH   ,
      $this->_settings->HANDLERS_PATH    ,
      $this->_settings->CONTROLLERS_PATH  ,
      $this->_settings->LIBRARIES_PATH  ,
      $this->_settings->HELPERS_PATH    ,
      $this->_settings->FORMS_PATH    ,
    ];
 
    if (isset($this->_settings->OTHER_INCLUDE_PATHS))
    {
      $includeDirs = array_merge($includeDirs, $this->_settings->OTHER_INCLUDE_PATHS);
    }
 
    if (isset($this->_settings->OTHER_INCLUDE_PATHS_RECURSIVE) && is_array($this->_settings->OTHER_INCLUDE_PATHS_RECURSIVE))
    {
      foreach ($this->_settings->OTHER_INCLUDE_PATHS_RECURSIVE as $path)
      {
        if (file_exists($path))
        {
          $iterator = new \RecursiveIteratorIterator(
            new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS),
            \RecursiveIteratorIterator::SELF_FIRST
          );
 
          foreach ($iterator as $file)
          {
            if ($file->isDir())
            {
              $includeDirs[] = $file->getRealpath();
            }
          }
        }
      }
    }
 
    if (!empty($this->_settings->USE_CLASS_MAP_FOR_CUSTOM_CODE))
    {
      $classMapFile = $this->_settings->CACHE_OTHER_PATH . 'classmap.php';
 
      $map = [];
 
      if (!file_exists($classMapFile))
      {
        $includeDirs =  array_reverse($includeDirs);
        //dd($includeDirs);
        foreach ($includeDirs as $dir)
        {
          $map = array_merge($map, \Symfony\Component\ClassLoader\ClassMapGenerator::createMap($dir));
        }
 
        file_put_contents($classMapFile, sprintf('<?php return %s;', var_export($map, true)));
      }
      else
      {
        $map = require_once $classMapFile;
      }
 
      $loader->addClassMap($map);
    }
    else
    {
      // reverse so that core has priority
      $loader->add('', array_reverse($includeDirs));
    }
  }
 
  /**
   * @return \Phalcon\Mvc\View
   * initializing the view
   */
  protected function _InitView()
  {
    $view = new Phalcon\Mvc\View([
      'stop_verify_file_exists' => true // make it so that the view does not check if a file exists, but directly pass to the engine
    ]);
 
    $view->setViewsDir($this->_settings->VIEWS_PATHS[0]);
 
    $twigEngine      = new Phalcon\Mvc\View\Engine\Twig($view, $this->_di, ['cache' => $this->_settings->CACHE_VIEWS_PATH]);
    $twigEnvironment  = $twigEngine->getTwig();
    $twigLoader      = $twigEnvironment->getLoader();
    $twigLoader->setPaths($this->_settings->VIEWS_PATHS);
 
    $view->registerEngines(
      ['.volt' => $twigEngine]
    );
 
    $this->_setDiProperty('view', $view, true);
    $this->_setDiProperty('compiler', $view, true);
  }
 
  /**
   * @return new Dela\Localizer
   *
   */
  protected function _InitLocalizer()
  {
    $this->_setDiProperty(
      'localizer',
      function()
      {
        return ApiLocalizer::getInstance($this->_di);
      },
      true
    );
  }
 
  /**
   * @return new WhiteLabelHelper
   *
   */
  protected function _InitWhiteLabel()
  {
    $this->_setDiProperty('whiteLabel',
      function()
      {
        return new WhiteLabelHelper();
      },
      true
    );
  }
 
  /**
   * @return new \MongoDB\Driver\Manager
   *
   */
  protected function _InitMongo()
  {
    $this->_setDiProperty('mongo',
      function()
      {
        $options = isset($this->_settings->MONGODB_SETTINGS['options']) ? $this->_settings->MONGODB_SETTINGS['options'] : [];
 
        return new \MongoDB\Driver\Manager($this->_settings->MONGODB_SETTINGS['server'], $options);
      },
      true
    );
  }
 
  /**
   * Api adapters
   *
   */
  protected function _InitApiAdapters()
  {
    $this->_setDiProperty('memberApiAdapter',  'MemberApiAdapter',      true);
    $this->_setDiProperty('agentApi',      'AgentApiAdapter',      true);
    $this->_setDiProperty('oddsApi',      'OddsApiAdapter',      true);
    $this->_setDiProperty('betsApi',      'BetsApiAdapter',      true);
    $this->_setDiProperty('cmsApi',        'CmsApiAdapter',      true);
    $this->_setDiProperty('sportCmsApi',    'SportCmsApiAdapter',    true);
    $this->_setDiProperty('memberApi',      'MemberApiAdapter',      true);
    $this->_setDiProperty('messagesApi',    'MessagesApiAdapter',    true);
    $this->_setDiProperty('casinoApi',      'CasinoApiAdapter',      true);
    $this->_setDiProperty('antiFraudApi',    'AntiFraudApiAdapter',    true);
    $this->_setDiProperty('settingsApi',    'SettingsApiAdapter',    true);
    $this->_setDiProperty('translationsApi',  'TranslationsApiAdapter',  true);
    $this->_setDiProperty('marketingApi',    'MarketingApiAdapter',    true);
  }
}
#5BootstrapHandler->__construct(Object(stdClass))
/var/www/1bet.com/front_end/apps/1bet/public/index.php (66)
<?php
 
ini_set('zend.enable_gc', 1);
define('APP_START_TIME', microtime(true));
/**
 * Session garbage collecting settings
 *
 * - 100% propability of running GC
 * - 30 seconds lifetime
 */
ini_set('session.gc_probability'  , 1);
ini_set('session.gc_divisor'    , 1);
ini_set('session.gc_maxlifetime'  , 3600);
ini_set('session.cookie_domain', '.dela.local' );
 
/**
 *
 * {APP_NAME}
 *
 * @category {APP_NAME}
 * @package  com.Delasport.www
 * @author   Delasport Team
 * @license  Delasport Company License https://www.delasport.com
 * @link     https://www.delasport.com
 */
 
/*---------------------------*/
/* Core and app config start */
/*---------------------------*/
header('charset=utf-8');
$config = new stdClass();
$config->APP_NAME  = basename(dirname(dirname(__FILE__)));
$config->APP_PATH  = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR;
$config->ROOT_PATH = dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR;
 
$config->IS_MOBILE = getenv('IS_MOBILE');
 
$config->SESSION_SAVE_PATH = 'front';
global $loader;
$loader = require_once dirname($config->ROOT_PATH)  . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
require_once $config->ROOT_PATH . 'core' . DIRECTORY_SEPARATOR . 'BootstrapHandler.php';
include_once $config->ROOT_PATH . 'core' . DIRECTORY_SEPARATOR . 'core.php';
 
//Sessions custom savepath
ini_set('session.save_path', realpath(session_save_path()) . DIRECTORY_SEPARATOR . $config->SESSION_SAVE_PATH);
 
/*---------------------*/
/* BOOTSTRAPPING START */
/*---------------------*/
if ($config->DEBUG_MODE)
{
  $trace = new \Phalcon\Debug();
  $trace->listen();
}
else
{
//  set_exception_handler(
//    function(Exception $e) use($config)
//    {
//      header('Location: ' . $config->ERROR_URI);
//      exit;
//    }
//  );
}
 
$app = new BootstrapHandler($config);
KeyValue
_url/
KeyValue
REDIRECT_HTTPSon
REDIRECT_SSL_TLS_SNIwww.1bet.com
REDIRECT_STATUS200
HTTPSon
SSL_TLS_SNIwww.1bet.com
SSL_SERVER_S_DN_OUDomain Control Validated
SSL_SERVER_S_DN_CN*.1bet.com
SSL_SERVER_I_DN_CBE
SSL_SERVER_I_DN_OGlobalSign nv-sa
SSL_SERVER_I_DN_CNAlphaSSL CA - SHA256 - G2
SSL_VERSION_INTERFACEmod_ssl/2.2.15
SSL_VERSION_LIBRARYOpenSSL/1.0.1e-fips
SSL_PROTOCOLTLSv1
SSL_SECURE_RENEGtrue
SSL_COMPRESS_METHODNULL
SSL_CIPHERECDHE-RSA-AES256-SHA
SSL_CIPHER_EXPORTfalse
SSL_CIPHER_USEKEYSIZE256
SSL_CIPHER_ALGKEYSIZE256
SSL_CLIENT_VERIFYNONE
SSL_SERVER_M_VERSION3
SSL_SERVER_M_SERIAL11210DF6B521E08FB853A965F75E9061CF88
SSL_SERVER_V_STARTDec 15 11:41:39 2015 GMT
SSL_SERVER_V_ENDDec 15 11:41:39 2018 GMT
SSL_SERVER_S_DN/OU=Domain Control Validated/CN=*.1bet.com
SSL_SERVER_I_DN/C=BE/O=GlobalSign nv-sa/CN=AlphaSSL CA - SHA256 - G2
SSL_SERVER_A_KEYrsaEncryption
SSL_SERVER_A_SIGsha256WithRSAEncryption
SSL_SESSION_ID708C8FFBA128D777DC265AE83D676F0E5B2ACC45179025D3C9F82D8652AAEBD2
HTTP_HOSTwww.1bet.com
HTTP_ACCEPT_ENCODINGx-gzip, gzip, deflate
HTTP_USER_AGENTCCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_LANGUAGEen-us,en-gb,en;q=0.7,*;q=0.3
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PATH/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE<address>Apache/2.2.15 (CentOS) Server at www.1bet.com Port 443</address>\n
SERVER_SOFTWAREApache/2.2.15 (CentOS)
SERVER_NAMEwww.1bet.com
SERVER_ADDR136.243.110.155
SERVER_PORT443
REMOTE_ADDR54.167.0.4
DOCUMENT_ROOT/var/www/1bet.com/front_end/apps/1bet/public/
SERVER_ADMINroot@localhost
SCRIPT_FILENAME/var/www/1bet.com/front_end/apps/1bet/public/index.php
REMOTE_PORT49104
REDIRECT_QUERY_STRING_url=/
REDIRECT_URL/EN/help/index_en.htm
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.0
REQUEST_METHODGET
QUERY_STRING_url=/
REQUEST_URI/EN/help/index_en.htm
SCRIPT_NAME/index.php
PHP_SELF/index.php
REQUEST_TIME_FLOAT1474830128.368
REQUEST_TIME1474830128
#Path
0/var/www/1bet.com/front_end/apps/1bet/public/index.php
1/var/www/1bet.com/vendor/autoload.php
2/var/www/1bet.com/vendor/composer/autoload_real.php
3/var/www/1bet.com/vendor/composer/ClassLoader.php
4/var/www/1bet.com/vendor/composer/autoload_namespaces.php
5/var/www/1bet.com/vendor/composer/autoload_psr4.php
6/var/www/1bet.com/vendor/composer/autoload_classmap.php
7/var/www/1bet.com/vendor/composer/autoload_files.php
8/var/www/1bet.com/vendor/phalcon/Phalcon.php
9/var/www/1bet.com/core/utils.php
10/var/www/1bet.com/front_end/core/BootstrapHandler.php
11/var/www/1bet.com/core/BootstrapHandler.php
12/var/www/1bet.com/front_end/core/core.php
13/var/www/1bet.com/front_end/apps/1bet/app/config/locales.php
14/var/www/1bet.com/front_end/apps/1bet/app/config/casino.php
15/var/www/1bet.com/front_end/apps/1bet/app/config/betslip.php
16/var/www/1bet.com/front_end/apps/1bet/app/config/config.php
17/var/www/1bet.com/front_end/apps/1bet/app/config/assetManagement.php
18/var/www/1bet.com/front_end/apps/1bet/app/config/maps.php
19/var/www/1bet.com/vendor/phalcon/Phalcon/Debug.php
20/var/www/1bet.com/front_end/apps/1bet/static/cache/other/classmap.php
21/var/www/1bet.com/vendor/phalcon/Phalcon/Di.php
22/var/www/1bet.com/vendor/phalcon/Phalcon/DiInterface.php
23/var/www/1bet.com/vendor/phalcon/Phalcon/Di/Service.php
24/var/www/1bet.com/vendor/phalcon/Phalcon/Di/ServiceInterface.php
25/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/View.php
26/var/www/1bet.com/vendor/phalcon/Phalcon/Di/Injectable.php
27/var/www/1bet.com/vendor/phalcon/Phalcon/Di/InjectionAwareInterface.php
28/var/www/1bet.com/vendor/phalcon/Phalcon/Events/EventsAwareInterface.php
29/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/ViewInterface.php
30/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/View/Engine/Twig.php
31/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/View/Engine.php
32/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/View/EngineInterface.php
33/var/www/1bet.com/vendor/twig/twig/lib/Twig/Loader/Filesystem.php
34/var/www/1bet.com/vendor/twig/twig/lib/Twig/LoaderInterface.php
35/var/www/1bet.com/vendor/twig/twig/lib/Twig/ExistsLoaderInterface.php
36/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/View/Engine/Twig/Environment.php
37/var/www/1bet.com/vendor/twig/twig/lib/Twig/Environment.php
38/var/www/1bet.com/vendor/twig/twig/lib/Twig/Cache/Filesystem.php
39/var/www/1bet.com/vendor/twig/twig/lib/Twig/CacheInterface.php
40/var/www/1bet.com/vendor/twig/twig/lib/Twig/Extension/Core.php
41/var/www/1bet.com/vendor/twig/twig/lib/Twig/Extension.php
42/var/www/1bet.com/vendor/twig/twig/lib/Twig/ExtensionInterface.php
43/var/www/1bet.com/vendor/twig/twig/lib/Twig/Extension/Escaper.php
44/var/www/1bet.com/vendor/twig/twig/lib/Twig/Extension/Optimizer.php
45/var/www/1bet.com/vendor/twig/twig/lib/Twig/Extension/Staging.php
46/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/View/Engine/Twig/CoreExtension.php
47/var/www/1bet.com/vendor/twig/twig/lib/Twig/Extension/Debug.php
48/var/www/1bet.com/vendor/twig/twig/lib/Twig/SimpleFunction.php
49/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/Application.php
50/var/www/1bet.com/core/Request.php
51/var/www/1bet.com/vendor/phalcon/Phalcon/Http/Request.php
52/var/www/1bet.com/vendor/phalcon/Phalcon/Http/RequestInterface.php
53/var/www/1bet.com/core/Mapper.php
54/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/RouterInterface.php
55/var/www/1bet.com/front_end/apps/1bet/app/config/routes.php
56/var/www/1bet.com/front_end/apps/1bet/app/config/routes/casino.php
57/var/www/1bet.com/core/Route.php
58/var/www/1bet.com/front_end/apps/1bet/app/config/routes/default.php
59/var/www/1bet.com/front_end/apps/1bet/app/config/routes/mobile.php
60/var/www/1bet.com/core/Inflector.php
61/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/Dispatcher.php
62/var/www/1bet.com/vendor/phalcon/Phalcon/Dispatcher.php
63/var/www/1bet.com/vendor/phalcon/Phalcon/DispatcherInterface.php
64/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/DispatcherInterface.php
65/var/www/1bet.com/core/Response.php
66/var/www/1bet.com/vendor/phalcon/Phalcon/Http/Response.php
67/var/www/1bet.com/vendor/phalcon/Phalcon/Http/ResponseInterface.php
68/var/www/1bet.com/vendor/phalcon/Phalcon/Http/Response/Headers.php
69/var/www/1bet.com/vendor/phalcon/Phalcon/Http/Response/HeadersInterface.php
70/var/www/1bet.com/vendor/phalcon/Phalcon/Mvc/Dispatcher/Exception.php
71/var/www/1bet.com/vendor/phalcon/Phalcon/Exception.php
72/var/www/1bet.com/vendor/phalcon/Phalcon/Version.php
Memory
Usage1572864