Phalcon Framework 3.4.5

Error: Class 'Snowair\Debugbar\ServiceProvider' not found

/home/virail/web/di/debug.php (25)
#0require_once
/home/virail/web/bootstrap.php (105)
<?php
use Phalcon\Mvc\Application;
use Phalcon\Di\FactoryDefault;
 
# Env var set in apache vhost.
if (isset($_SERVER['V_BACKEND_ALONE'])) {
    include __DIR__ . '/vendor/autoload.php';
} else {
    include __DIR__ . '/../vendor/autoload.php';
}
 
$dotenv = Dotenv\Dotenv::createImmutable(__APPDIR__ .'/../');
$dotenv->safeLoad();
 
 
Timing::addStartCallback(function($key, $time) {
    try {
        Phalcon\DI::getDefault()->getDebug()->startMeasure($key);
    } catch (\Exception $e) {
    }
});
Timing::addStopCallback(function($key, $time) {
    try {
        Phalcon\DI::getDefault()->getDebug()->stopMeasure($key);
    } catch (\Exception $e) {
    }
});
Timing::addBreakCallback(function($key, $time) {
    try {
        app()->getDebug()->addMeasurePoint($key);
    } catch (\Exception $e) {
    }
});
 
$di = new FactoryDefault();
// d($di);
 
$dependencies = [
    'action',
    'host',
    'feLogger',
    'background',
    'availableLocales',
    'config',
    'configuration', # holds the common values between php & python
    'cookies',
    'isDebug',
    'db',
    'dbWrite',
    'defaultCurrency',
    'dispatcher',
    'env',
    'errorHandler',
 
    'locale',
    'modelsManager',
 
    'redis',
 
    'redisSearch',
    'redisSession',
 
    'redisMetrics',
    'redisLogs',
    'redisLocal',
    'redisConfig',
    'redisHolder',
    'redisStorage',
    'redisCache',
    'router',
    'routes',
    'tld',
    'trans',
    'transport',
    'view',
    'logs',
    'slack',
    'twig',
    'flags',
 
    'abtest',
 
    # new frontend
    'i18n',
    'conf'
];
 
foreach ($dependencies as $dep) {
    $file = sprintf('%s/di/%s.php',__APPDIR__ ,$dep);
    $di->setShared($dep, require_once($file) );
}
$di->setShared("response", Phalcon\Http\Response::class);
 
$di->getAbtest();
 
    // $di->setShared($dep, require_once($file) );
// d($di);
 
$di['app'] = new Application($di);
 
Phalcon\DI::setDefault($di);
 
define('ENV', $di->get('env'));
 
$di->setShared('debug', require_once(__APPDIR__.'/di/debug.php'));
 
$di->setShared('logger', function () : Monolog\Logger {
    return (new Core\Logger( 'frontend' ))->getLogger();
});
 
\Timing::break('boot');
 
return $di['app'];
 
 
 
 
#1require_once(/home/virail/web/bootstrap.php)
/home/virail/web/public/index.php (111)
<?php
define('START_MICROTIME', microtime(true));
define('VERSION',      trim(file_get_contents(__DIR__.'/../../VERSION')));
define('INT_VERSION',  intval(str_replace('.', '', VERSION)));
define('VIRAIL_ADS',  !isset($_SERVER['HTTP_V_NOADS']));
 
 
/**
 * Cloudflare being accessed with https
 */
if(!empty($_SERVER["HTTP_CF_CONNECTING_IP"]) && !empty($_SERVER['HTTP_X_FORWARDED_PROTO'])){
    if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
        $_SERVER['REQUEST_SCHEME'] = 'https';
    }
}
 
/**
 * Client IP behind cloudflare
 */
if (isset($_SERVER['REMOTE_ADDR'])) {
    $_SERVER['REMOTE_ADDR'] = isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];
}
 
/**
 * Case of short link to apps
 */
 
if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == 'app.virail.net') {
    switch ($_GET['app']) {
        case 'android':
            $url = 'https://play.google.com/store/apps/details?id=com.virail';
            break;
        case 'ios':
            break;
        default:
            $url = 'https://virail.com';
            break;
    }
    unset($_GET['app']);
    $url = 'https://play.google.com/store/apps/details?id=com.virail&' . http_build_query($_GET);
 
    header("HTTP/1.1 302 Moved Temporary");
    header('Location: ' . $url,  302);
    die;
}
 
 
/**
 * Fixing Host header
 */
if (isset($_SERVER['HTTP_HOST'])) {
    $specialCaseSet = array(
        'bg.virail.com' => 'virail.bg',
        'tr.virail.com' => 'virail.tr',
        'ca.virail.com' => 'virail.ca',
        'th.virail.com' => 'virail.th',
    );
 
    $_SERVER['HTTP_HOST'] = trim(strtolower($_SERVER['HTTP_HOST']),".");
 
    $tokens = explode(".", str_replace(array_keys($specialCaseSet), array_values($specialCaseSet), $_SERVER['HTTP_HOST']));
 
    $tld = explode(':', $tokens[count($tokens)-1]);
    $_SERVER['HTTP_TLD']  = $tld[0];
    $_SERVER['HTTP_SUB']  = $tokens[0];
 
    # Matching:
    # - it.t01.testing.virail.io
    # - es.staging.virail.io
    # - it.peter.dev.virail.io
    # Access is set by DNS
    if (preg_match('/^((\w{2,3})\.(?:((t\d+\.|s\d+\.|\w+\.)|))(testing|crawl|staging|wip|partner|dev))\.virail\.io/', $_SERVER['HTTP_HOST'], $match)) {
        $_SERVER['HTTP_TLD']  = $match[2];
        $_SERVER['HTTP_SUB']  = $match[1];
    }
 
    if (preg_match('/^(\w{2,3})\.virail\.top/', $_SERVER['HTTP_HOST'], $match)) {
        $_SERVER['HTTP_TLD']  = $match[1];
        $_SERVER['HTTP_SUB']  = 'testing';
    }
 
    /**
     * Redirect from non-www to www hosts
     */
    if ($_SERVER['HTTP_SUB'] === "virail") {
        $url = sprintf("%s://www.%s%s",
            $_SERVER['REQUEST_SCHEME'],
            $_SERVER['HTTP_HOST'],
            $_SERVER['REQUEST_URI'] );
 
        header("HTTP/1.1 301 Moved Permanently");
        header('Location: ' . $url,  301);
        die;
    }
 
    $validFrontend = 'www,api,maps,tracking,staging,staging-api,crawl,testing,testing-api,dev,dev-api,dev-tracking,test,static,mappingtool,wip,partner';
 
    $sub = explode(".", $_SERVER['HTTP_SUB']);
    if (!in_array( end($sub), explode(",",$validFrontend))) {
        header("HTTP/1.1 404 Not Found");
        die;
    }
}
 
if (!defined('__APPDIR__')) define('__APPDIR__',__DIR__.'/../');
 
 
 
// Phalcon start
 
$app = require_once(__DIR__ . '/../bootstrap.php');
 
 
try {
 
    # Temp patch to stop ongoing crawl (2020-09-23)
    if (isset($_SERVER['HTTP_CF_IPCOUNTRY']) && $_SERVER['HTTP_CF_IPCOUNTRY'] == 'CN' && $_SERVER['HTTP_TLD'] != 'cn') {
        $app->getDi()->getResponse()->setStatusCode( 451, 'Unavailable For Legal Reasons' );
        throw new \Exception("CN Crawl block");
    }
 
    $response = $app->handle();
    $view = $app->getDi()->getView();
 
    if ($view->isDisabled()) {
        $response->setContentType('application/json', 'UTF-8');
        $response->setJsonContent( $view->getParamsToView(), JSON_PRETTY_PRINT ) ;
    }
 
    $response->setHeader('V-Total-Exec', round(microtime(true) - START_MICROTIME, 3) );
    $response->setHeader('V-Flags', $app->getDi()->getFlags()->unique()->values()->toJson() );
    if (isset($_SERVER['HTTP_USER_AGENT'])) {
        $response->setHeader('V-User-Agent', $_SERVER['HTTP_USER_AGENT'] );
    }
 
    // if (isset($_SERVER['HTTP_V_ABT_NEWFRONTEND']) && in_array( $_SERVER['HTTP_V_ABT_NEWFRONTEND'], ['default','proposal1','proposal2'])) {
    //     setcookie("vabt_newfrontend", $_SERVER['HTTP_V_ABT_NEWFRONTEND'], time() + 60*60*24*365, '/');
    // }
 
    $response->send();
 
} catch (\Exception $e) {
    # @TODO @IMPORTANT -- error in case of exception on testing
    $app->getDi()->getErrorHandler($e);
} catch (\TypeError $e) {
    $app->getDi()->getErrorHandler(new Exception($e->getMessage()));
}
KeyValue
_url/bus-newark_nj-new_york_ny
KeyValue
REDIRECT_STATUS200
HTTP_CF_IPCOUNTRYUS
HTTP_CF_RAY66046da38c805ae0-IAD
HTTP_X_FORWARDED_PROTOhttps
HTTP_CF_VISITOR{"scheme":"https"}
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5
HTTP_CF_CONNECTING_IP34.239.179.228
HTTP_CDN_LOOPcloudflare
HTTP_CF_REQUEST_ID0ab6a2da3400005ae028114000000001
HTTP_ABTESTVAR_TLDmy
HTTP_ABTESTVAR_HASCOOKIE0
HTTP_ABTESTVAR_RND_NEWFRONTEND71.277
HTTP_V_ABT_NEWFRONTENDproposal1
HTTP_V_ABTESTHASHnewFrontend=proposal1;
HTTP_ACCEPT_ENCODINGgzip
HTTP_USER_AGENTCCBot/2.0 (https;//commoncrawl.org/faq/)
HTTP_X_PROJECTvr
HTTP_X_FORWARDED_FOR34.239.179.228
HTTP_HOSTwww.virail.my
HTTP_X_VARNISH654402886
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE<address>Apache/2.4.25 (Debian) Server at www.virail.my Port 80</address>\n
SERVER_SOFTWAREApache/2.4.25 (Debian)
SERVER_NAMEwww.virail.my
SERVER_ADDR138.201.217.7
SERVER_PORT80
REMOTE_ADDR34.239.179.228
DOCUMENT_ROOT/home/virail/web/public/
REQUEST_SCHEMEhttps
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT/home/virail/web/public/
SERVER_ADMIN[no address given]
SCRIPT_FILENAME/home/virail/web/public/index.php
REMOTE_PORT33014
REDIRECT_URL/bus-newark_nj-new_york_ny
REDIRECT_QUERY_STRING_url=/bus-newark_nj-new_york_ny
GATEWAY_INTERFACECGI/1.1
SERVER_PROTOCOLHTTP/1.1
REQUEST_METHODGET
QUERY_STRING_url=/bus-newark_nj-new_york_ny
REQUEST_URI/bus-newark_nj-new_york_ny
SCRIPT_NAME/index.php
PHP_SELF/index.php
REQUEST_TIME_FLOAT1623850599.151
REQUEST_TIME1623850599
HTTP_TLDmy
HTTP_SUBwww
CACHE_DISABLE_PER_REQUEST0
CACHE_FULLPAGE_GRACE_TRANSPORTCITY_RENTALCAR86400
CACHE_FULLPAGE_TTL_TRANSPORTCITY_RENTALCAR120
CF_ACCESS_CLIENT_ID03dcbd79253baa561e9f83c5e3fc6957.access
CF_ACCESS_CLIENT_SECRET600074c6ee4a284955a01b0134647be428c652bf1761b5df936a9393db51b9e7
CLICKOUT_FILE/home/virail/config/clickout-vals.json
CMS_CACHE_PREFIXcms:6:api:
DEBUG_ENABLED_PER_REQUEST0
DIRECTUS_TOKENqsts7r4p3VIuOLbTlj6mKbPsnHnMnnM7q
ENABLE_RATE_LIMITER1
ENVfrontend
INCREMENTAL_CACHE_PREFIX_NETWORKc:lrc:23:inws:2:
JSON_ENABLED_PER_REQUEST0
RATE_LIMITER_LOGLEVELWARNING
RENTALCAR_INTERLINK_CACHE_PREFIXrci:2
SEARCH_RATE_LIMITER_HOURS_WINDOW2
SEARCH_RATE_LIMITER_MAX_SEARCH_COUNT19
#Path
0/home/virail/web/public/index.php
1/home/virail/web/bootstrap.php
2/home/virail/vendor/autoload.php
3/home/virail/vendor/composer/autoload_real.php
4/home/virail/vendor/composer/ClassLoader.php
5/home/virail/vendor/composer/autoload_static.php
6/home/virail/vendor/symfony/polyfill-ctype/bootstrap.php
7/home/virail/vendor/symfony/polyfill-mbstring/bootstrap.php
8/home/virail/vendor/symfony/polyfill-php70/bootstrap.php
9/home/virail/vendor/symfony/polyfill-apcu/bootstrap.php
10/home/virail/vendor/symfony/polyfill-php56/bootstrap.php
11/home/virail/vendor/symfony/polyfill-intl-normalizer/bootstrap.php
12/home/virail/vendor/symfony/polyfill-php72/bootstrap.php
13/home/virail/vendor/symfony/polyfill-php72/Php72.php
14/home/virail/vendor/symfony/polyfill-intl-idn/bootstrap.php
15/home/virail/vendor/ralouphie/getallheaders/src/getallheaders.php
16/home/virail/vendor/guzzlehttp/psr7/src/functions_include.php
17/home/virail/vendor/guzzlehttp/psr7/src/functions.php
18/home/virail/vendor/guzzlehttp/promises/src/functions_include.php
19/home/virail/vendor/guzzlehttp/promises/src/functions.php
20/home/virail/vendor/guzzlehttp/guzzle/src/functions_include.php
21/home/virail/vendor/guzzlehttp/guzzle/src/functions.php
22/home/virail/vendor/meenie/javascript-packer/class.JavaScriptPacker.php
23/home/virail/vendor/symfony/polyfill-iconv/bootstrap.php
24/home/virail/vendor/swiftmailer/swiftmailer/lib/swift_required.php
25/home/virail/vendor/swiftmailer/swiftmailer/lib/classes/Swift.php
26/home/virail/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php
27/home/virail/vendor/react/promise/src/functions_include.php
28/home/virail/vendor/react/promise/src/functions.php
29/home/virail/vendor/kriswallsmith/assetic/src/functions.php
30/home/virail/vendor/starkbank/ecdsa/src/ellipticcurve.php
31/home/virail/vendor/starkbank/ecdsa/src/utils/file.php
32/home/virail/vendor/starkbank/ecdsa/src/signature.php
33/home/virail/vendor/starkbank/ecdsa/src/publickey.php
34/home/virail/vendor/starkbank/ecdsa/src/privatekey.php
35/home/virail/vendor/starkbank/ecdsa/src/ecdsa.php
36/home/virail/vendor/daveross/offline-country-reverse-geocoder/src/offline-country-reverse-geocoder.php
37/home/virail/vendor/google/apiclient/src/aliases.php
38/home/virail/vendor/google/apiclient/src/Client.php
39/home/virail/vendor/google/apiclient/src/Service.php
40/home/virail/vendor/google/apiclient/src/AccessToken/Revoke.php
41/home/virail/vendor/google/apiclient/src/AccessToken/Verify.php
42/home/virail/vendor/google/apiclient/src/Model.php
43/home/virail/vendor/google/apiclient/src/Utils/UriTemplate.php
44/home/virail/vendor/google/apiclient/src/AuthHandler/Guzzle6AuthHandler.php
45/home/virail/vendor/google/apiclient/src/AuthHandler/Guzzle7AuthHandler.php
46/home/virail/vendor/google/apiclient/src/AuthHandler/Guzzle5AuthHandler.php
47/home/virail/vendor/google/apiclient/src/AuthHandler/AuthHandlerFactory.php
48/home/virail/vendor/google/apiclient/src/Http/Batch.php
49/home/virail/vendor/google/apiclient/src/Http/MediaFileUpload.php
50/home/virail/vendor/google/apiclient/src/Http/REST.php
51/home/virail/vendor/google/apiclient/src/Task/Retryable.php
52/home/virail/vendor/google/apiclient/src/Task/Exception.php
53/home/virail/vendor/google/apiclient/src/Exception.php
54/home/virail/vendor/google/apiclient/src/Task/Runner.php
55/home/virail/vendor/google/apiclient/src/Collection.php
56/home/virail/vendor/google/apiclient/src/Service/Exception.php
57/home/virail/vendor/google/apiclient/src/Service/Resource.php
58/home/virail/vendor/google/apiclient/src/Task/Composer.php
59/home/virail/vendor/illuminate/support/helpers.php
60/home/virail/vendor/szymach/c-pchart/src/Resources/data/constants.php
61/home/virail/web/library/helpers.php
62/home/virail/vendor/vlucas/phpdotenv/src/Dotenv.php
63/home/virail/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php
64/home/virail/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php
65/home/virail/vendor/vlucas/phpdotenv/src/Repository/Adapter/AvailabilityInterface.php
66/home/virail/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php
67/home/virail/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php
68/home/virail/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php
69/home/virail/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php
70/home/virail/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php
71/home/virail/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php
72/home/virail/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php
73/home/virail/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php
74/home/virail/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php
75/home/virail/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php
76/home/virail/vendor/vlucas/phpdotenv/src/Loader/Loader.php
77/home/virail/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php
78/home/virail/vendor/vlucas/phpdotenv/src/Store/FileStore.php
79/home/virail/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php
80/home/virail/vendor/vlucas/phpdotenv/src/Store/File/Paths.php
81/home/virail/vendor/vlucas/phpdotenv/src/Store/File/Reader.php
82/home/virail/vendor/phpoption/phpoption/src/PhpOption/Option.php
83/home/virail/vendor/phpoption/phpoption/src/PhpOption/Some.php
84/home/virail/vendor/vlucas/phpdotenv/src/Loader/Lines.php
85/home/virail/vendor/vlucas/phpdotenv/src/Regex/Regex.php
86/home/virail/vendor/vlucas/phpdotenv/src/Result/Success.php
87/home/virail/vendor/vlucas/phpdotenv/src/Result/Result.php
88/home/virail/vendor/vlucas/phpdotenv/src/Loader/Parser.php
89/home/virail/vendor/vlucas/phpdotenv/src/Loader/Value.php
90/home/virail/vendor/phpoption/phpoption/src/PhpOption/None.php
91/home/virail/web/models/Timing.php
92/home/virail/web/di/action.php
93/home/virail/web/di/host.php
94/home/virail/web/di/feLogger.php
95/home/virail/web/di/background.php
96/home/virail/web/di/availableLocales.php
97/home/virail/web/di/config.php
98/home/virail/web/di/configuration.php
99/home/virail/web/di/cookies.php
100/home/virail/web/di/isDebug.php
101/home/virail/web/di/db.php
102/home/virail/web/di/dbWrite.php
103/home/virail/web/di/defaultCurrency.php
104/home/virail/web/di/dispatcher.php
105/home/virail/web/di/env.php
106/home/virail/web/di/errorHandler.php
107/home/virail/web/di/locale.php
108/home/virail/web/di/modelsManager.php
109/home/virail/web/di/redis.php
110/home/virail/web/di/redisSearch.php
111/home/virail/web/di/redisSession.php
112/home/virail/web/di/redisMetrics.php
113/home/virail/web/di/redisLogs.php
114/home/virail/web/di/redisLocal.php
115/home/virail/web/di/redisConfig.php
116/home/virail/web/di/redisHolder.php
117/home/virail/web/di/redisStorage.php
118/home/virail/web/di/redisCache.php
119/home/virail/web/di/router.php
120/home/virail/web/di/routes.php
121/home/virail/web/di/tld.php
122/home/virail/web/di/trans.php
123/home/virail/web/di/transport.php
124/home/virail/web/di/view.php
125/home/virail/web/di/logs.php
126/home/virail/web/di/slack.php
127/home/virail/web/di/twig.php
128/home/virail/web/di/flags.php
129/home/virail/vendor/illuminate/support/Collection.php
130/home/virail/vendor/illuminate/support/Traits/Macroable.php
131/home/virail/vendor/illuminate/contracts/Support/Arrayable.php
132/home/virail/vendor/illuminate/contracts/Support/Jsonable.php
133/home/virail/web/di/abtest.php
134/home/virail/web/di/i18n.php
135/home/virail/web/di/conf.php
136/home/virail/vendor/illuminate/support/Str.php
137/home/virail/web/di/debug.php
138/home/virail/web/models/Core/Config.php
139/home/virail/web/config/application.php
140/home/virail/config/application.php
141/home/virail/config/frontend/application.php
Memory
Usage2097152