Illuminate \ Database \ QueryException (2002)
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)
Previous exceptions
  • SQLSTATE[HY000] [2002] No such file or directory (2002)
  • SQLSTATE[HY000] [2002] No such file or directory (2002)
Illuminate\Database\QueryException thrown with message "SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)" Stacktrace: #36 Illuminate\Database\QueryException in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 #35 Doctrine\DBAL\Driver\PDOException in /var/www/html/vhosts/adminV2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31 #34 PDOException in /var/www/html/vhosts/adminV2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27 #33 PDO:__construct in /var/www/html/vhosts/adminV2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27 #32 Doctrine\DBAL\Driver\PDOConnection:__construct in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67 #31 Illuminate\Database\Connectors\Connector:createPdoConnection in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:46 #30 Illuminate\Database\Connectors\Connector:createConnection in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 #29 Illuminate\Database\Connectors\MySqlConnector:connect in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 #28 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #27 call_user_func in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #26 Illuminate\Database\Connection:getPdo in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:943 #25 Illuminate\Database\Connection:getReadPdo in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 #24 Illuminate\Database\Connection:getPdoForSelect in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:325 #23 Illuminate\Database\Connection:Illuminate\Database\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 #22 Illuminate\Database\Connection:runQueryCallback in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 #21 Illuminate\Database\Connection:run in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 #20 Illuminate\Database\Connection:select in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2095 #19 Illuminate\Database\Query\Builder:runSelect in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2083 #18 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2569 #17 Illuminate\Database\Query\Builder:onceWithColumns in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2084 #16 Illuminate\Database\Query\Builder:get in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:519 #15 Illuminate\Database\Eloquent\Builder:getModels in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:503 #14 Illuminate\Database\Eloquent\Builder:get in /var/www/html/vhosts/adminV2/app/Modules/SitemapAnalyzer/Models/Storage.php:46 #13 App\Modules\SitemapAnalyzer\Models\Storage:__getSitemapInProgress in /var/www/html/vhosts/adminV2/app/Modules/SitemapAnalyzer/Models/Storage.php:40 #12 App\Modules\SitemapAnalyzer\Models\Storage:getSitemapInProgress in /var/www/html/vhosts/adminV2/app/Modules/SitemapAnalyzer/Jobs/SitemapCheck.php:26 #11 App\Modules\SitemapAnalyzer\Jobs\SitemapCheck:__construct in /var/www/html/vhosts/adminV2/app/Console/Kernel.php:48 #10 App\Console\Kernel:schedule in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:107 #9 Illuminate\Foundation\Console\Kernel:defineConsoleSchedule in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:90 #8 Illuminate\Foundation\Console\Kernel:Illuminate\Foundation\Console\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:858 #7 call_user_func in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:858 #6 Illuminate\Foundation\Application:fireAppCallbacks in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:807 #5 Illuminate\Foundation\Application:boot in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 #4 Illuminate\Foundation\Bootstrap\BootProviders:bootstrap in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:211 #3 Illuminate\Foundation\Application:bootstrapWith in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 #2 Illuminate\Foundation\Http\Kernel:bootstrap in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in /var/www/html/vhosts/adminV2/public/index.php:55
36
Illuminate
\
Database
\
QueryException
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
664
35
Doctrine
\
DBAL
\
Driver
\
PDOException
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
31
34
PDOException
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
27
33
PDO
__construct
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
27
32
Doctrine
\
DBAL
\
Driver
\
PDOConnection
__construct
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
67
31
Illuminate
\
Database
\
Connectors
\
Connector
createPdoConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
46
30
Illuminate
\
Database
\
Connectors
\
Connector
createConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
MySqlConnector.php
24
29
Illuminate
\
Database
\
Connectors
\
MySqlConnector
connect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
ConnectionFactory.php
182
28
Illuminate
\
Database
\
Connectors
\
ConnectionFactory
Illuminate
\
Database
\
Connectors
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
918
27
call_user_func
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
918
26
Illuminate
\
Database
\
Connection
getPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
943
25
Illuminate
\
Database
\
Connection
getReadPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
399
24
Illuminate
\
Database
\
Connection
getPdoForSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
325
23
Illuminate
\
Database
\
Connection
Illuminate
\
Database
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
657
22
Illuminate
\
Database
\
Connection
runQueryCallback
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
624
21
Illuminate
\
Database
\
Connection
run
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
333
20
Illuminate
\
Database
\
Connection
select
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2095
19
Illuminate
\
Database
\
Query
\
Builder
runSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2083
18
Illuminate
\
Database
\
Query
\
Builder
Illuminate
\
Database
\
Query
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2569
17
Illuminate
\
Database
\
Query
\
Builder
onceWithColumns
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2084
16
Illuminate
\
Database
\
Query
\
Builder
get
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
519
15
Illuminate
\
Database
\
Eloquent
\
Builder
getModels
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
503
14
Illuminate
\
Database
\
Eloquent
\
Builder
get
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
46
13
App
\
Modules
\
SitemapAnalyzer
\
Models
\
Storage
__getSitemapInProgress
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
40
12
App
\
Modules
\
SitemapAnalyzer
\
Models
\
Storage
getSitemapInProgress
/
app
/
Modules
/
SitemapAnalyzer
/
Jobs
/
SitemapCheck.php
26
11
App
\
Modules
\
SitemapAnalyzer
\
Jobs
\
SitemapCheck
__construct
/
app
/
Console
/
Kernel.php
48
10
App
\
Console
\
Kernel
schedule
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
107
9
Illuminate
\
Foundation
\
Console
\
Kernel
defineConsoleSchedule
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
90
8
Illuminate
\
Foundation
\
Console
\
Kernel
Illuminate
\
Foundation
\
Console
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
858
7
call_user_func
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
858
6
Illuminate
\
Foundation
\
Application
fireAppCallbacks
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
807
5
Illuminate
\
Foundation
\
Application
boot
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Bootstrap
/
BootProviders.php
17
4
Illuminate
\
Foundation
\
Bootstrap
\
BootProviders
bootstrap
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
211
3
Illuminate
\
Foundation
\
Application
bootstrapWith
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
162
2
Illuminate
\
Foundation
\
Http
\
Kernel
bootstrap
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
146
1
Illuminate
\
Foundation
\
Http
\
Kernel
sendRequestThroughRouter
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
116
0
Illuminate
\
Foundation
\
Http
\
Kernel
handle
/
public
/
index.php
55
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
     * @return void
     */
    public function logQuery($query, $bindings, $time = null)
    {
        $this->event(new QueryExecuted($query, $bindings, $time, $this));
 
        if ($this->loggingQueries) {
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)"
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function getServerVersion()
    {
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
 
    /**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array   $config
     * @param  array   $options
     * @return \PDO
     *
     * @throws \Exception
     */
    public function createConnection($dsn, array $config, array $options)
    {
        [$username, $password] = [
            $config['username'] ?? null, $config['password'] ?? null,
        ];
 
        try {
            return $this->createPdoConnection(
                $dsn, $username, $password, $options
            );
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
MySqlConnector.php
use PDO;
 
class MySqlConnector extends Connector implements ConnectorInterface
{
    /**
     * Establish a database connection.
     *
     * @param  array  $config
     * @return \PDO
     */
    public function connect(array $config)
    {
        $dsn = $this->getDsn($config);
 
        $options = $this->getOptions($config);
 
        // We need to grab the PDO options that should be used while making the brand
        // new connection instance. The PDO options control various aspects of the
        // connection's behavior, and some might be specified by the developers.
        $connection = $this->createConnection($dsn, $config, $options);
 
        if (! empty($config['database'])) {
            $connection->exec("use `{$config['database']}`;");
        }
 
        $this->configureEncoding($connection, $config);
 
        // Next, we will check to see if a timezone has been specified in this config
        // and if it has we will issue a statement to modify the timezone with the
        // database. Setting this DB timezone is an optional configuration item.
        $this->configureTimezone($connection, $config);
 
        $this->setModes($connection, $config);
 
        return $connection;
    }
 
    /**
     * Set the connection character set and collation.
     *
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. array:14 [
      "driver" => "mysql"
      "host" => "localhost"
      "port" => "3306"
      "database" => "admin2"
      "username" => "wolf"
      "password" => "itmaster"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
  3. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
ConnectionFactory.php
    {
        return array_key_exists('host', $config)
                            ? $this->createPdoResolverWithHosts($config)
                            : $this->createPdoResolverWithoutHosts($config);
    }
 
    /**
     * Create a new Closure that resolves to a PDO instance with a specific host or an array of hosts.
     *
     * @param  array  $config
     * @return \Closure
     */
    protected function createPdoResolverWithHosts(array $config)
    {
        return function () use ($config) {
            foreach (Arr::shuffle($hosts = $this->parseHosts($config)) as $key => $host) {
                $config['host'] = $host;
 
                try {
                    return $this->createConnector($config)->connect($config);
                } catch (PDOException $e) {
                    continue;
                }
            }
 
            throw $e;
        };
    }
 
    /**
     * Parse the hosts configuration item into an array.
     *
     * @param  array  $config
     * @return array
     */
    protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);
 
        if (empty($hosts)) {
Arguments
  1. array:14 [
      "driver" => "mysql"
      "host" => "localhost"
      "port" => "3306"
      "database" => "admin2"
      "username" => "wolf"
      "password" => "itmaster"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
Arguments
  1. Closure() {#143 …5}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
        if ($this->readPdo instanceof Closure) {
            return $this->readPdo = call_user_func($this->readPdo);
        }
 
        return $this->readPdo ?: $this->getPdo();
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
        $this->transactions = 0;
 
        $this->pdo = $pdo;
 
        return $this;
    }
 
    /**
     * Set the PDO connection used for reading.
     *
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new Events\StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return int
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
Arguments
  1. true
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     * Run a SQL statement and log its execution context.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function run($query, $bindings, Closure $callback)
    {
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. Closure($query, $bindings) {#274 …6}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
        $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // First we will create a statement for the query. Then, we will set the fetch
            // mode and prepare the bindings for the query. Once that's done we will be
            // ready to execute the query against the database and return the cursor.
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. Closure($query, $bindings) {#274 …6}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
     * @param  int|null  $page
     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
     */
    public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
    {
        $page = $page ?: Paginator::resolveCurrentPage($pageName);
 
        $total = $this->getCountForPagination($columns);
 
        $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
 
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. true
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     * @param  string  $column
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
    }
 
    /**
     * Execute the given callback while selecting the given columns.
     *
     * After running the callback, the columns are reset to the original value.
     *
     * @param  array  $columns
     * @param  callable  $callback
     * @return mixed
     */
    protected function onceWithColumns($columns, $callback)
    {
        $original = $this->columns;
 
        if (is_null($original)) {
            $this->columns = $columns;
        }
 
        $result = $callback();
 
        $this->columns = $original;
 
        return $result;
    }
 
    /**
     * Insert a new record into the database.
     *
     * @param  array  $values
     * @return bool
     */
    public function insert(array $values)
    {
        // Since every insert gets treated like a batch insert, we will make sure the
        // bindings are structured in a way that is convenient when building these
        // inserts statements by verifying these elements are actually an array.
        if (empty($values)) {
            return true;
        }
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
Arguments
  1. array:1 [
      0 => "*"
    ]
    
  2. Closure() {#269 …4}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
     * Eager load the relationships for the models.
     *
     * @param  array  $models
     * @return array
     */
    public function eagerLoadRelations(array $models)
    {
        foreach ($this->eagerLoad as $name => $constraints) {
            // For nested eager loads we'll skip loading them here and they will be set as an
            // eager load on the query to retrieve the relation so that they will be eager
            // loaded on that query, because that is where they get hydrated as models.
            if (strpos($name, '.') === false) {
                $models = $this->eagerLoadRelation($models, $name, $constraints);
            }
        }
 
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
    {
        if ($result = $this->first([$column])) {
            return $result->{$column};
        }
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
    public function get($columns = ['*'])
    {
        $builder = $this->applyScopes();
 
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
 
    public function __createNew($sitemapUrl)
    {
        $this->user_id = \getUserId();
        $this->status = self::STATUS_NEW;
        $this->url = $sitemapUrl;
        $this->save();
 
        return $this;
    }
 
    public static function getSitemapInProgress(int $userId = 0)
    {
        return (new Storage())->__getSitemapInProgress($userId);
    }
 
    public function __getSitemapInProgress(int $userId = 0)
    {
        if($userId === 0)
            return $this->where('status',self::STATUS_IN_PROGRESS)->get();
 
        return $this
                ->where('user_id',$userId)
                ->where(function($query){
                    $query->whereIn('status',[self::STATUS_IN_PROGRESS, self::STATUS_IN_PROGRESS_PARSE]);
                })
                ->get();
    }
 
    public static function getSitemapInProgressParse()
    {
        return (new Storage())->__getSitemapInProgressParse();
    }
 
    public function __getSitemapInProgressParse()
    {
        return $this->where('status',self::STATUS_IN_PROGRESS_PARSE)->get();
    }
 
    public function __countChildrenInWork()
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
    protected $table = 'sitemap_storage';
 
    public static function createNew($sitemapUrl)
    {
        return (new Storage())->__createNew($sitemapUrl);
    }
 
    public function __createNew($sitemapUrl)
    {
        $this->user_id = \getUserId();
        $this->status = self::STATUS_NEW;
        $this->url = $sitemapUrl;
        $this->save();
 
        return $this;
    }
 
    public static function getSitemapInProgress(int $userId = 0)
    {
        return (new Storage())->__getSitemapInProgress($userId);
    }
 
    public function __getSitemapInProgress(int $userId = 0)
    {
        if($userId === 0)
            return $this->where('status',self::STATUS_IN_PROGRESS)->get();
 
        return $this
                ->where('user_id',$userId)
                ->where(function($query){
                    $query->whereIn('status',[self::STATUS_IN_PROGRESS, self::STATUS_IN_PROGRESS_PARSE]);
                })
                ->get();
    }
 
    public static function getSitemapInProgressParse()
    {
        return (new Storage())->__getSitemapInProgressParse();
    }
 
Arguments
  1. 0
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Modules
/
SitemapAnalyzer
/
Jobs
/
SitemapCheck.php
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
 
class SitemapCheck implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
 
    protected $newSitemaps;
 
    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->newSitemaps = Storage::getSitemapInProgress();
    }
 
    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        foreach($this->newSitemaps as $item)
        {
            $sitemapItems = StorageItems::getBySitemapId($item->id);
 
            foreach($sitemapItems as $itemUrl){
                SitemapCheckNode::dispatch($itemUrl);
            }
 
            $item->status = Storage::STATUS_IN_PROGRESS_PARSE;
            $item->update();
        }
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Console
/
Kernel.php
        ModuleMigrationCreator::class,
        ModuleControllerCreator::class,
        ShowModules::class,
        ModuleEnable::class,
        CreateAdminUser::class,
        CreateAdminGroup::class,
    ];
 
    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        if(config('app.debug'))
                \Log::info('Schedule kernel start');
 
        $schedule->job(new SitemapCheck)->everyMinute();
        $schedule->job(new SitemapFinisher)->everyMinute();
    }   
 
    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');
 
        require base_path('routes/console.php');
    }
}
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
 
        $this->app->booted(function () {
            $this->defineConsoleSchedule();
        });
    }
 
    /**
     * Define the application's command schedule.
     *
     * @return void
     */
    protected function defineConsoleSchedule()
    {
        $this->app->singleton(Schedule::class, function () {
            return new Schedule;
        });
 
        $schedule = $this->app->make(Schedule::class);
 
        $this->schedule($schedule);
    }
 
    /**
     * Run the console application.
     *
     * @param  \Symfony\Component\Console\Input\InputInterface  $input
     * @param  \Symfony\Component\Console\Output\OutputInterface  $output
     * @return int
     */
    public function handle($input, $output = null)
    {
        try {
            $this->bootstrap();
 
            return $this->getArtisan()->run($input, $output);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $this->renderException($output, $e);
 
Arguments
  1. Schedule {#31}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
    ];
 
    /**
     * Create a new console kernel instance.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @param  \Illuminate\Contracts\Events\Dispatcher  $events
     * @return void
     */
    public function __construct(Application $app, Dispatcher $events)
    {
        if (! defined('ARTISAN_BINARY')) {
            define('ARTISAN_BINARY', 'artisan');
        }
 
        $this->app = $app;
        $this->events = $events;
 
        $this->app->booted(function () {
            $this->defineConsoleSchedule();
        });
    }
 
    /**
     * Define the application's command schedule.
     *
     * @return void
     */
    protected function defineConsoleSchedule()
    {
        $this->app->singleton(Schedule::class, function () {
            return new Schedule;
        });
 
        $schedule = $this->app->make(Schedule::class);
 
        $this->schedule($schedule);
    }
 
    /**
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
     */
    public function booted($callback)
    {
        $this->bootedCallbacks[] = $callback;
 
        if ($this->isBooted()) {
            $this->fireAppCallbacks([$callback]);
        }
    }
 
    /**
     * Call the booting callbacks for the application.
     *
     * @param  callable[]  $callbacks
     * @return void
     */
    protected function fireAppCallbacks(array $callbacks)
    {
        foreach ($callbacks as $callback) {
            call_user_func($callback, $this);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function handle(SymfonyRequest $request, $type = self::MASTER_REQUEST, $catch = true)
    {
        return $this[HttpKernelContract::class]->handle(Request::createFromBase($request));
    }
 
    /**
     * Determine if middleware has been disabled for the application.
     *
     * @return bool
     */
    public function shouldSkipMiddleware()
    {
        return $this->bound('middleware.disable') &&
               $this->make('middleware.disable') === true;
Arguments
  1. Application {#2}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
     */
    public function booted($callback)
    {
        $this->bootedCallbacks[] = $callback;
 
        if ($this->isBooted()) {
            $this->fireAppCallbacks([$callback]);
        }
    }
 
    /**
     * Call the booting callbacks for the application.
     *
     * @param  callable[]  $callbacks
     * @return void
     */
    protected function fireAppCallbacks(array $callbacks)
    {
        foreach ($callbacks as $callback) {
            call_user_func($callback, $this);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function handle(SymfonyRequest $request, $type = self::MASTER_REQUEST, $catch = true)
    {
        return $this[HttpKernelContract::class]->handle(Request::createFromBase($request));
    }
 
    /**
     * Determine if middleware has been disabled for the application.
     *
     * @return bool
     */
    public function shouldSkipMiddleware()
    {
        return $this->bound('middleware.disable') &&
               $this->make('middleware.disable') === true;
Arguments
  1. Closure() {#216 …4}
    
  2. Application {#2}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
     * @return void
     */
    public function boot()
    {
        if ($this->booted) {
            return;
        }
 
        // Once the application has booted we will also fire some "booted" callbacks
        // for any listeners that need to do work after this initial booting gets
        // finished. This is useful when ordering the boot-up processes we run.
        $this->fireAppCallbacks($this->bootingCallbacks);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
    /**
     * Register a new boot listener.
     *
     * @param  callable  $callback
     * @return void
Arguments
  1. array:2 [
      0 => Closure() {#157 …4}
      1 => Closure() {#216 …4}
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Bootstrap
/
BootProviders.php
<?php
 
namespace Illuminate\Foundation\Bootstrap;
 
use Illuminate\Contracts\Foundation\Application;
 
class BootProviders
{
    /**
     * Bootstrap the given application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    public function bootstrap(Application $app)
    {
        $app->boot();
    }
}
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
    {
        $this->register(new EventServiceProvider($this));
        $this->register(new LogServiceProvider($this));
        $this->register(new RoutingServiceProvider($this));
    }
 
    /**
     * Run the given array of bootstrap classes.
     *
     * @param  string[]  $bootstrappers
     * @return void
     */
    public function bootstrapWith(array $bootstrappers)
    {
        $this->hasBeenBootstrapped = true;
 
        foreach ($bootstrappers as $bootstrapper) {
            $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
 
            $this->make($bootstrapper)->bootstrap($this);
 
            $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
        }
    }
 
    /**
     * Register a callback to run after loading the environment.
     *
     * @param  \Closure  $callback
     * @return void
     */
    public function afterLoadingEnvironment(Closure $callback)
    {
        return $this->afterBootstrapping(
            LoadEnvironmentVariables::class, $callback
        );
    }
 
    /**
     * Register a callback to run before a bootstrapper.
Arguments
  1. Application {#2}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
    {
        return function ($request) {
            $this->app->instance('request', $request);
 
            return $this->router->dispatch($request);
        };
    }
 
    /**
     * Call the terminate method on any terminable middleware.
     *
Arguments
  1. array:6 [
      0 => "Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables"
      1 => "Illuminate\Foundation\Bootstrap\LoadConfiguration"
      2 => "Illuminate\Foundation\Bootstrap\HandleExceptions"
      3 => "Illuminate\Foundation\Bootstrap\RegisterFacades"
      4 => "Illuminate\Foundation\Bootstrap\RegisterProviders"
      5 => "Illuminate\Foundation\Bootstrap\BootProviders"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
    {
        $this->app->instance('request', $request);
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
            $router->middlewareGroup($key, $middleware);
        }
 
        foreach ($this->routeMiddleware as $key => $middleware) {
            $router->aliasMiddleware($key, $middleware);
        }
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        } catch (Throwable $e) {
            $this->reportException($e = new FatalThrowableError($e));
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: null
      #requestUri: null
      #baseUrl: null
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "/serviceminificator/api/v1/recource/minification"
      requestUri: "/serviceminificator/api/v1/recource/minification?base_url=https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css&content_type=css&output_format=css"
      baseUrl: ""
      basePath: ""
      method: "GET"
      format: "html"
    }
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
public
/
index.php
*/
 
$app = require_once __DIR__.'/../bootstrap/app.php';
 
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
 
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
 
$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);
 
$response->send();
 
$kernel->terminate($request, $response);
 
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: null
      #requestUri: null
      #baseUrl: null
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "/serviceminificator/api/v1/recource/minification"
      requestUri: "/serviceminificator/api/v1/recource/minification?base_url=https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css&content_type=css&output_format=css"
      baseUrl: ""
      basePath: ""
      method: "GET"
      format: "html"
    }
    

Environment & details:

Key Value
base_url
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
content_type
"css"
output_format
"css"
empty
empty
empty
empty
Key Value
USER
"apache"
HOME
"/usr/share/httpd"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_HOST
"admin2.comfi.com"
REDIRECT_STATUS
"200"
SERVER_NAME
"admin2.comfi.com"
SERVER_PORT
"443"
SERVER_ADDR
"172.16.21.41"
REMOTE_PORT
"41890"
REMOTE_ADDR
"172.16.2.94"
SERVER_SOFTWARE
"nginx/1.10.1"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
REQUEST_SCHEME
"https"
SERVER_PROTOCOL
"HTTP/1.1"
DOCUMENT_ROOT
"/var/www/html/vhosts/adminV2/public"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/serviceminificator/api/v1/recource/minification?base_url=https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css&content_type=css&output_format=css"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
"base_url=https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css&content_type=css&output_format=css"
SCRIPT_FILENAME
"/var/www/html/vhosts/adminV2/public/index.php"
PATH_INFO
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1571707165.6833
REQUEST_TIME
1571707165
APP_NAME
"Comfi Admin v2.0"
APP_ENV
"production"
APP_KEY
"base64:oE3Lvwxg78EhVJQC4XfJ2+Ro4uUNLRBGiwbPSiuhRO4="
APP_DEBUG
"true"
APP_URL
"https://admin2.comfi.com/"
FORCE_SCHEME_HTTPS
"true"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"admin2"
DB_USERNAME
"wolf"
DB_PASSWORD
"itmaster"
DB_CDDB_CONNECTION
"mysql"
DB_CDDB_HOST
"db"
DB_CDDB_PORT
"3306"
DB_CDDB_DATABASE
""
DB_CDDB_USERNAME
"admPanel2"
DB_CDDB_PASSWORD
"itmaster"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"memcached"
QUEUE_CONNECTION
"database"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"172.16.21.6"
MAIL_PORT
"25"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
MAIL_FROM_ADDRESS
"noreplay@comfi.com"
MAIL_FROM_NAME
"System"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
FACEBOOK_APP_ID
"591168491308910"
FACEBOOK_APP_SECRET
"b7a8c3370c1004e62f3ae8a8b5980150"
FACEBOOK_API_VERSION
"v3.2"
FACEBOOK_ACCESS_TOKEN
"591168491308910|XxH369t9IKbOAo_maobMZAngC0k"
A2B_API_URI
"http://a2b_api.comfi.com:8094/api/v1/"
FCM_SERVER_KEY
"AAAArP3uFck:APA91bG7cnV7AoK8_lEmxlQlO_p070A7xrYFUwkZEyYZYiGNHMdLrB6A8TxB2si_vDjrMdG_o201z2MJN_j5uM09NcqwsHth9EcaG0FDgeT3UTOCt6z79SqJsDwQNpXAWYG4weuvMCbj"
FCM_SENDER_ID
"ComfiCom"
FCM_LOG
"false"
COMFI_DB_HOST
"cdbs"
COMFI_DB_PORT
"3306"
COMFI_DB_USERNAME
"adminuser"
COMFI_DB_PASSWORD
"Judnmfr73jd6"
COMFI_DB_DATABASE
"bell"
Key Value
APP_NAME
"Comfi Admin v2.0"
APP_ENV
"production"
APP_KEY
"base64:oE3Lvwxg78EhVJQC4XfJ2+Ro4uUNLRBGiwbPSiuhRO4="
APP_DEBUG
"true"
APP_URL
"https://admin2.comfi.com/"
FORCE_SCHEME_HTTPS
"true"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"admin2"
DB_USERNAME
"wolf"
DB_PASSWORD
"itmaster"
DB_CDDB_CONNECTION
"mysql"
DB_CDDB_HOST
"db"
DB_CDDB_PORT
"3306"
DB_CDDB_DATABASE
""
DB_CDDB_USERNAME
"admPanel2"
DB_CDDB_PASSWORD
"itmaster"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"memcached"
QUEUE_CONNECTION
"database"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"172.16.21.6"
MAIL_PORT
"25"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
MAIL_FROM_ADDRESS
"noreplay@comfi.com"
MAIL_FROM_NAME
"System"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
FACEBOOK_APP_ID
"591168491308910"
FACEBOOK_APP_SECRET
"b7a8c3370c1004e62f3ae8a8b5980150"
FACEBOOK_API_VERSION
"v3.2"
FACEBOOK_ACCESS_TOKEN
"591168491308910|XxH369t9IKbOAo_maobMZAngC0k"
A2B_API_URI
"http://a2b_api.comfi.com:8094/api/v1/"
FCM_SERVER_KEY
"AAAArP3uFck:APA91bG7cnV7AoK8_lEmxlQlO_p070A7xrYFUwkZEyYZYiGNHMdLrB6A8TxB2si_vDjrMdG_o201z2MJN_j5uM09NcqwsHth9EcaG0FDgeT3UTOCt6z79SqJsDwQNpXAWYG4weuvMCbj"
FCM_SENDER_ID
"ComfiCom"
FCM_LOG
"false"
COMFI_DB_HOST
"cdbs"
COMFI_DB_PORT
"3306"
COMFI_DB_USERNAME
"adminuser"
COMFI_DB_PASSWORD
"Judnmfr73jd6"
COMFI_DB_DATABASE
"bell"
0. Whoops\Handler\PrettyPageHandler
Illuminate \ Database \ QueryException (2002)
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)
Previous exceptions
  • SQLSTATE[HY000] [2002] No such file or directory (2002)
  • SQLSTATE[HY000] [2002] No such file or directory (2002)
Illuminate\Database\QueryException thrown with message "SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)" Stacktrace: #36 Illuminate\Database\QueryException in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 #35 Doctrine\DBAL\Driver\PDOException in /var/www/html/vhosts/adminV2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31 #34 PDOException in /var/www/html/vhosts/adminV2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27 #33 PDO:__construct in /var/www/html/vhosts/adminV2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27 #32 Doctrine\DBAL\Driver\PDOConnection:__construct in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67 #31 Illuminate\Database\Connectors\Connector:createPdoConnection in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:46 #30 Illuminate\Database\Connectors\Connector:createConnection in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 #29 Illuminate\Database\Connectors\MySqlConnector:connect in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 #28 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #27 call_user_func in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #26 Illuminate\Database\Connection:getPdo in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:943 #25 Illuminate\Database\Connection:getReadPdo in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 #24 Illuminate\Database\Connection:getPdoForSelect in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:325 #23 Illuminate\Database\Connection:Illuminate\Database\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 #22 Illuminate\Database\Connection:runQueryCallback in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 #21 Illuminate\Database\Connection:run in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 #20 Illuminate\Database\Connection:select in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2095 #19 Illuminate\Database\Query\Builder:runSelect in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2083 #18 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2569 #17 Illuminate\Database\Query\Builder:onceWithColumns in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2084 #16 Illuminate\Database\Query\Builder:get in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:519 #15 Illuminate\Database\Eloquent\Builder:getModels in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:503 #14 Illuminate\Database\Eloquent\Builder:get in /var/www/html/vhosts/adminV2/app/Modules/SitemapAnalyzer/Models/Storage.php:46 #13 App\Modules\SitemapAnalyzer\Models\Storage:__getSitemapInProgress in /var/www/html/vhosts/adminV2/app/Modules/SitemapAnalyzer/Models/Storage.php:40 #12 App\Modules\SitemapAnalyzer\Models\Storage:getSitemapInProgress in /var/www/html/vhosts/adminV2/app/Modules/SitemapAnalyzer/Jobs/SitemapCheck.php:26 #11 App\Modules\SitemapAnalyzer\Jobs\SitemapCheck:__construct in /var/www/html/vhosts/adminV2/app/Console/Kernel.php:48 #10 App\Console\Kernel:schedule in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:107 #9 Illuminate\Foundation\Console\Kernel:defineConsoleSchedule in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:90 #8 Illuminate\Foundation\Console\Kernel:Illuminate\Foundation\Console\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:858 #7 call_user_func in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:858 #6 Illuminate\Foundation\Application:fireAppCallbacks in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:807 #5 Illuminate\Foundation\Application:boot in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 #4 Illuminate\Foundation\Bootstrap\BootProviders:bootstrap in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:211 #3 Illuminate\Foundation\Application:bootstrapWith in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 #2 Illuminate\Foundation\Http\Kernel:bootstrap in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in /var/www/html/vhosts/adminV2/public/index.php:55
36
Illuminate
\
Database
\
QueryException
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
664
35
Doctrine
\
DBAL
\
Driver
\
PDOException
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
31
34
PDOException
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
27
33
PDO
__construct
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
27
32
Doctrine
\
DBAL
\
Driver
\
PDOConnection
__construct
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
67
31
Illuminate
\
Database
\
Connectors
\
Connector
createPdoConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
46
30
Illuminate
\
Database
\
Connectors
\
Connector
createConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
MySqlConnector.php
24
29
Illuminate
\
Database
\
Connectors
\
MySqlConnector
connect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
ConnectionFactory.php
182
28
Illuminate
\
Database
\
Connectors
\
ConnectionFactory
Illuminate
\
Database
\
Connectors
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
918
27
call_user_func
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
918
26
Illuminate
\
Database
\
Connection
getPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
943
25
Illuminate
\
Database
\
Connection
getReadPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
399
24
Illuminate
\
Database
\
Connection
getPdoForSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
325
23
Illuminate
\
Database
\
Connection
Illuminate
\
Database
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
657
22
Illuminate
\
Database
\
Connection
runQueryCallback
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
624
21
Illuminate
\
Database
\
Connection
run
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
333
20
Illuminate
\
Database
\
Connection
select
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2095
19
Illuminate
\
Database
\
Query
\
Builder
runSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2083
18
Illuminate
\
Database
\
Query
\
Builder
Illuminate
\
Database
\
Query
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2569
17
Illuminate
\
Database
\
Query
\
Builder
onceWithColumns
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2084
16
Illuminate
\
Database
\
Query
\
Builder
get
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
519
15
Illuminate
\
Database
\
Eloquent
\
Builder
getModels
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
503
14
Illuminate
\
Database
\
Eloquent
\
Builder
get
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
46
13
App
\
Modules
\
SitemapAnalyzer
\
Models
\
Storage
__getSitemapInProgress
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
40
12
App
\
Modules
\
SitemapAnalyzer
\
Models
\
Storage
getSitemapInProgress
/
app
/
Modules
/
SitemapAnalyzer
/
Jobs
/
SitemapCheck.php
26
11
App
\
Modules
\
SitemapAnalyzer
\
Jobs
\
SitemapCheck
__construct
/
app
/
Console
/
Kernel.php
48
10
App
\
Console
\
Kernel
schedule
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
107
9
Illuminate
\
Foundation
\
Console
\
Kernel
defineConsoleSchedule
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
90
8
Illuminate
\
Foundation
\
Console
\
Kernel
Illuminate
\
Foundation
\
Console
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
858
7
call_user_func
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
858
6
Illuminate
\
Foundation
\
Application
fireAppCallbacks
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
807
5
Illuminate
\
Foundation
\
Application
boot
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Bootstrap
/
BootProviders.php
17
4
Illuminate
\
Foundation
\
Bootstrap
\
BootProviders
bootstrap
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
211
3
Illuminate
\
Foundation
\
Application
bootstrapWith
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
162
2
Illuminate
\
Foundation
\
Http
\
Kernel
bootstrap
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
146
1
Illuminate
\
Foundation
\
Http
\
Kernel
sendRequestThroughRouter
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
116
0
Illuminate
\
Foundation
\
Http
\
Kernel
handle
/
public
/
index.php
55
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
     * @return void
     */
    public function logQuery($query, $bindings, $time = null)
    {
        $this->event(new QueryExecuted($query, $bindings, $time, $this));
 
        if ($this->loggingQueries) {
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)"
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function getServerVersion()
    {
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
 
    /**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array   $config
     * @param  array   $options
     * @return \PDO
     *
     * @throws \Exception
     */
    public function createConnection($dsn, array $config, array $options)
    {
        [$username, $password] = [
            $config['username'] ?? null, $config['password'] ?? null,
        ];
 
        try {
            return $this->createPdoConnection(
                $dsn, $username, $password, $options
            );
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
MySqlConnector.php
use PDO;
 
class MySqlConnector extends Connector implements ConnectorInterface
{
    /**
     * Establish a database connection.
     *
     * @param  array  $config
     * @return \PDO
     */
    public function connect(array $config)
    {
        $dsn = $this->getDsn($config);
 
        $options = $this->getOptions($config);
 
        // We need to grab the PDO options that should be used while making the brand
        // new connection instance. The PDO options control various aspects of the
        // connection's behavior, and some might be specified by the developers.
        $connection = $this->createConnection($dsn, $config, $options);
 
        if (! empty($config['database'])) {
            $connection->exec("use `{$config['database']}`;");
        }
 
        $this->configureEncoding($connection, $config);
 
        // Next, we will check to see if a timezone has been specified in this config
        // and if it has we will issue a statement to modify the timezone with the
        // database. Setting this DB timezone is an optional configuration item.
        $this->configureTimezone($connection, $config);
 
        $this->setModes($connection, $config);
 
        return $connection;
    }
 
    /**
     * Set the connection character set and collation.
     *
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. array:14 [
      "driver" => "mysql"
      "host" => "localhost"
      "port" => "3306"
      "database" => "admin2"
      "username" => "wolf"
      "password" => "itmaster"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
  3. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
ConnectionFactory.php
    {
        return array_key_exists('host', $config)
                            ? $this->createPdoResolverWithHosts($config)
                            : $this->createPdoResolverWithoutHosts($config);
    }
 
    /**
     * Create a new Closure that resolves to a PDO instance with a specific host or an array of hosts.
     *
     * @param  array  $config
     * @return \Closure
     */
    protected function createPdoResolverWithHosts(array $config)
    {
        return function () use ($config) {
            foreach (Arr::shuffle($hosts = $this->parseHosts($config)) as $key => $host) {
                $config['host'] = $host;
 
                try {
                    return $this->createConnector($config)->connect($config);
                } catch (PDOException $e) {
                    continue;
                }
            }
 
            throw $e;
        };
    }
 
    /**
     * Parse the hosts configuration item into an array.
     *
     * @param  array  $config
     * @return array
     */
    protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);
 
        if (empty($hosts)) {
Arguments
  1. array:14 [
      "driver" => "mysql"
      "host" => "localhost"
      "port" => "3306"
      "database" => "admin2"
      "username" => "wolf"
      "password" => "itmaster"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
Arguments
  1. Closure() {#143 …5}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
        if ($this->readPdo instanceof Closure) {
            return $this->readPdo = call_user_func($this->readPdo);
        }
 
        return $this->readPdo ?: $this->getPdo();
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
        $this->transactions = 0;
 
        $this->pdo = $pdo;
 
        return $this;
    }
 
    /**
     * Set the PDO connection used for reading.
     *
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new Events\StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return int
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
Arguments
  1. true
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     * Run a SQL statement and log its execution context.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function run($query, $bindings, Closure $callback)
    {
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. Closure($query, $bindings) {#274 …6}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
        $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // First we will create a statement for the query. Then, we will set the fetch
            // mode and prepare the bindings for the query. Once that's done we will be
            // ready to execute the query against the database and return the cursor.
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. Closure($query, $bindings) {#274 …6}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
     * @param  int|null  $page
     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
     */
    public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
    {
        $page = $page ?: Paginator::resolveCurrentPage($pageName);
 
        $total = $this->getCountForPagination($columns);
 
        $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
 
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. true
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     * @param  string  $column
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
    }
 
    /**
     * Execute the given callback while selecting the given columns.
     *
     * After running the callback, the columns are reset to the original value.
     *
     * @param  array  $columns
     * @param  callable  $callback
     * @return mixed
     */
    protected function onceWithColumns($columns, $callback)
    {
        $original = $this->columns;
 
        if (is_null($original)) {
            $this->columns = $columns;
        }
 
        $result = $callback();
 
        $this->columns = $original;
 
        return $result;
    }
 
    /**
     * Insert a new record into the database.
     *
     * @param  array  $values
     * @return bool
     */
    public function insert(array $values)
    {
        // Since every insert gets treated like a batch insert, we will make sure the
        // bindings are structured in a way that is convenient when building these
        // inserts statements by verifying these elements are actually an array.
        if (empty($values)) {
            return true;
        }
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
Arguments
  1. array:1 [
      0 => "*"
    ]
    
  2. Closure() {#269 …4}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
     * Eager load the relationships for the models.
     *
     * @param  array  $models
     * @return array
     */
    public function eagerLoadRelations(array $models)
    {
        foreach ($this->eagerLoad as $name => $constraints) {
            // For nested eager loads we'll skip loading them here and they will be set as an
            // eager load on the query to retrieve the relation so that they will be eager
            // loaded on that query, because that is where they get hydrated as models.
            if (strpos($name, '.') === false) {
                $models = $this->eagerLoadRelation($models, $name, $constraints);
            }
        }
 
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
    {
        if ($result = $this->first([$column])) {
            return $result->{$column};
        }
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
    public function get($columns = ['*'])
    {
        $builder = $this->applyScopes();
 
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
 
    public function __createNew($sitemapUrl)
    {
        $this->user_id = \getUserId();
        $this->status = self::STATUS_NEW;
        $this->url = $sitemapUrl;
        $this->save();
 
        return $this;
    }
 
    public static function getSitemapInProgress(int $userId = 0)
    {
        return (new Storage())->__getSitemapInProgress($userId);
    }
 
    public function __getSitemapInProgress(int $userId = 0)
    {
        if($userId === 0)
            return $this->where('status',self::STATUS_IN_PROGRESS)->get();
 
        return $this
                ->where('user_id',$userId)
                ->where(function($query){
                    $query->whereIn('status',[self::STATUS_IN_PROGRESS, self::STATUS_IN_PROGRESS_PARSE]);
                })
                ->get();
    }
 
    public static function getSitemapInProgressParse()
    {
        return (new Storage())->__getSitemapInProgressParse();
    }
 
    public function __getSitemapInProgressParse()
    {
        return $this->where('status',self::STATUS_IN_PROGRESS_PARSE)->get();
    }
 
    public function __countChildrenInWork()
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
    protected $table = 'sitemap_storage';
 
    public static function createNew($sitemapUrl)
    {
        return (new Storage())->__createNew($sitemapUrl);
    }
 
    public function __createNew($sitemapUrl)
    {
        $this->user_id = \getUserId();
        $this->status = self::STATUS_NEW;
        $this->url = $sitemapUrl;
        $this->save();
 
        return $this;
    }
 
    public static function getSitemapInProgress(int $userId = 0)
    {
        return (new Storage())->__getSitemapInProgress($userId);
    }
 
    public function __getSitemapInProgress(int $userId = 0)
    {
        if($userId === 0)
            return $this->where('status',self::STATUS_IN_PROGRESS)->get();
 
        return $this
                ->where('user_id',$userId)
                ->where(function($query){
                    $query->whereIn('status',[self::STATUS_IN_PROGRESS, self::STATUS_IN_PROGRESS_PARSE]);
                })
                ->get();
    }
 
    public static function getSitemapInProgressParse()
    {
        return (new Storage())->__getSitemapInProgressParse();
    }
 
Arguments
  1. 0
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Modules
/
SitemapAnalyzer
/
Jobs
/
SitemapCheck.php
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
 
class SitemapCheck implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
 
    protected $newSitemaps;
 
    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->newSitemaps = Storage::getSitemapInProgress();
    }
 
    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        foreach($this->newSitemaps as $item)
        {
            $sitemapItems = StorageItems::getBySitemapId($item->id);
 
            foreach($sitemapItems as $itemUrl){
                SitemapCheckNode::dispatch($itemUrl);
            }
 
            $item->status = Storage::STATUS_IN_PROGRESS_PARSE;
            $item->update();
        }
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Console
/
Kernel.php
        ModuleMigrationCreator::class,
        ModuleControllerCreator::class,
        ShowModules::class,
        ModuleEnable::class,
        CreateAdminUser::class,
        CreateAdminGroup::class,
    ];
 
    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        if(config('app.debug'))
                \Log::info('Schedule kernel start');
 
        $schedule->job(new SitemapCheck)->everyMinute();
        $schedule->job(new SitemapFinisher)->everyMinute();
    }   
 
    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');
 
        require base_path('routes/console.php');
    }
}
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
 
        $this->app->booted(function () {
            $this->defineConsoleSchedule();
        });
    }
 
    /**
     * Define the application's command schedule.
     *
     * @return void
     */
    protected function defineConsoleSchedule()
    {
        $this->app->singleton(Schedule::class, function () {
            return new Schedule;
        });
 
        $schedule = $this->app->make(Schedule::class);
 
        $this->schedule($schedule);
    }
 
    /**
     * Run the console application.
     *
     * @param  \Symfony\Component\Console\Input\InputInterface  $input
     * @param  \Symfony\Component\Console\Output\OutputInterface  $output
     * @return int
     */
    public function handle($input, $output = null)
    {
        try {
            $this->bootstrap();
 
            return $this->getArtisan()->run($input, $output);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $this->renderException($output, $e);
 
Arguments
  1. Schedule {#31}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
    ];
 
    /**
     * Create a new console kernel instance.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @param  \Illuminate\Contracts\Events\Dispatcher  $events
     * @return void
     */
    public function __construct(Application $app, Dispatcher $events)
    {
        if (! defined('ARTISAN_BINARY')) {
            define('ARTISAN_BINARY', 'artisan');
        }
 
        $this->app = $app;
        $this->events = $events;
 
        $this->app->booted(function () {
            $this->defineConsoleSchedule();
        });
    }
 
    /**
     * Define the application's command schedule.
     *
     * @return void
     */
    protected function defineConsoleSchedule()
    {
        $this->app->singleton(Schedule::class, function () {
            return new Schedule;
        });
 
        $schedule = $this->app->make(Schedule::class);
 
        $this->schedule($schedule);
    }
 
    /**
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
     */
    public function booted($callback)
    {
        $this->bootedCallbacks[] = $callback;
 
        if ($this->isBooted()) {
            $this->fireAppCallbacks([$callback]);
        }
    }
 
    /**
     * Call the booting callbacks for the application.
     *
     * @param  callable[]  $callbacks
     * @return void
     */
    protected function fireAppCallbacks(array $callbacks)
    {
        foreach ($callbacks as $callback) {
            call_user_func($callback, $this);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function handle(SymfonyRequest $request, $type = self::MASTER_REQUEST, $catch = true)
    {
        return $this[HttpKernelContract::class]->handle(Request::createFromBase($request));
    }
 
    /**
     * Determine if middleware has been disabled for the application.
     *
     * @return bool
     */
    public function shouldSkipMiddleware()
    {
        return $this->bound('middleware.disable') &&
               $this->make('middleware.disable') === true;
Arguments
  1. Application {#2}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
     */
    public function booted($callback)
    {
        $this->bootedCallbacks[] = $callback;
 
        if ($this->isBooted()) {
            $this->fireAppCallbacks([$callback]);
        }
    }
 
    /**
     * Call the booting callbacks for the application.
     *
     * @param  callable[]  $callbacks
     * @return void
     */
    protected function fireAppCallbacks(array $callbacks)
    {
        foreach ($callbacks as $callback) {
            call_user_func($callback, $this);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function handle(SymfonyRequest $request, $type = self::MASTER_REQUEST, $catch = true)
    {
        return $this[HttpKernelContract::class]->handle(Request::createFromBase($request));
    }
 
    /**
     * Determine if middleware has been disabled for the application.
     *
     * @return bool
     */
    public function shouldSkipMiddleware()
    {
        return $this->bound('middleware.disable') &&
               $this->make('middleware.disable') === true;
Arguments
  1. Closure() {#216 …4}
    
  2. Application {#2}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
     * @return void
     */
    public function boot()
    {
        if ($this->booted) {
            return;
        }
 
        // Once the application has booted we will also fire some "booted" callbacks
        // for any listeners that need to do work after this initial booting gets
        // finished. This is useful when ordering the boot-up processes we run.
        $this->fireAppCallbacks($this->bootingCallbacks);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
    /**
     * Register a new boot listener.
     *
     * @param  callable  $callback
     * @return void
Arguments
  1. array:2 [
      0 => Closure() {#157 …4}
      1 => Closure() {#216 …4}
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Bootstrap
/
BootProviders.php
<?php
 
namespace Illuminate\Foundation\Bootstrap;
 
use Illuminate\Contracts\Foundation\Application;
 
class BootProviders
{
    /**
     * Bootstrap the given application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    public function bootstrap(Application $app)
    {
        $app->boot();
    }
}
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
    {
        $this->register(new EventServiceProvider($this));
        $this->register(new LogServiceProvider($this));
        $this->register(new RoutingServiceProvider($this));
    }
 
    /**
     * Run the given array of bootstrap classes.
     *
     * @param  string[]  $bootstrappers
     * @return void
     */
    public function bootstrapWith(array $bootstrappers)
    {
        $this->hasBeenBootstrapped = true;
 
        foreach ($bootstrappers as $bootstrapper) {
            $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
 
            $this->make($bootstrapper)->bootstrap($this);
 
            $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
        }
    }
 
    /**
     * Register a callback to run after loading the environment.
     *
     * @param  \Closure  $callback
     * @return void
     */
    public function afterLoadingEnvironment(Closure $callback)
    {
        return $this->afterBootstrapping(
            LoadEnvironmentVariables::class, $callback
        );
    }
 
    /**
     * Register a callback to run before a bootstrapper.
Arguments
  1. Application {#2}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
    {
        return function ($request) {
            $this->app->instance('request', $request);
 
            return $this->router->dispatch($request);
        };
    }
 
    /**
     * Call the terminate method on any terminable middleware.
     *
Arguments
  1. array:6 [
      0 => "Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables"
      1 => "Illuminate\Foundation\Bootstrap\LoadConfiguration"
      2 => "Illuminate\Foundation\Bootstrap\HandleExceptions"
      3 => "Illuminate\Foundation\Bootstrap\RegisterFacades"
      4 => "Illuminate\Foundation\Bootstrap\RegisterProviders"
      5 => "Illuminate\Foundation\Bootstrap\BootProviders"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
    {
        $this->app->instance('request', $request);
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
            $router->middlewareGroup($key, $middleware);
        }
 
        foreach ($this->routeMiddleware as $key => $middleware) {
            $router->aliasMiddleware($key, $middleware);
        }
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        } catch (Throwable $e) {
            $this->reportException($e = new FatalThrowableError($e));
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: null
      #requestUri: null
      #baseUrl: null
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "/serviceminificator/api/v1/recource/minification"
      requestUri: "/serviceminificator/api/v1/recource/minification?base_url=https://comfi.com/img/custom.css&content_type=css&output_format=css"
      baseUrl: ""
      basePath: ""
      method: "GET"
      format: "html"
    }
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
public
/
index.php
*/
 
$app = require_once __DIR__.'/../bootstrap/app.php';
 
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
 
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
 
$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);
 
$response->send();
 
$kernel->terminate($request, $response);
 
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: null
      #requestUri: null
      #baseUrl: null
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "/serviceminificator/api/v1/recource/minification"
      requestUri: "/serviceminificator/api/v1/recource/minification?base_url=https://comfi.com/img/custom.css&content_type=css&output_format=css"
      baseUrl: ""
      basePath: ""
      method: "GET"
      format: "html"
    }
    

Environment & details:

Key Value
base_url
"https://comfi.com/img/custom.css"
content_type
"css"
output_format
"css"
empty
empty
empty
empty
Key Value
USER
"apache"
HOME
"/usr/share/httpd"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_HOST
"admin2.comfi.com"
REDIRECT_STATUS
"200"
SERVER_NAME
"admin2.comfi.com"
SERVER_PORT
"443"
SERVER_ADDR
"172.16.21.41"
REMOTE_PORT
"41974"
REMOTE_ADDR
"172.16.2.94"
SERVER_SOFTWARE
"nginx/1.10.1"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
REQUEST_SCHEME
"https"
SERVER_PROTOCOL
"HTTP/1.1"
DOCUMENT_ROOT
"/var/www/html/vhosts/adminV2/public"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/serviceminificator/api/v1/recource/minification?base_url=https://comfi.com/img/custom.css&content_type=css&output_format=css"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
"base_url=https://comfi.com/img/custom.css&content_type=css&output_format=css"
SCRIPT_FILENAME
"/var/www/html/vhosts/adminV2/public/index.php"
PATH_INFO
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1571707165.9616
REQUEST_TIME
1571707165
APP_NAME
"Comfi Admin v2.0"
APP_ENV
"production"
APP_KEY
"base64:oE3Lvwxg78EhVJQC4XfJ2+Ro4uUNLRBGiwbPSiuhRO4="
APP_DEBUG
"true"
APP_URL
"https://admin2.comfi.com/"
FORCE_SCHEME_HTTPS
"true"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"admin2"
DB_USERNAME
"wolf"
DB_PASSWORD
"itmaster"
DB_CDDB_CONNECTION
"mysql"
DB_CDDB_HOST
"db"
DB_CDDB_PORT
"3306"
DB_CDDB_DATABASE
""
DB_CDDB_USERNAME
"admPanel2"
DB_CDDB_PASSWORD
"itmaster"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"memcached"
QUEUE_CONNECTION
"database"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"172.16.21.6"
MAIL_PORT
"25"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
MAIL_FROM_ADDRESS
"noreplay@comfi.com"
MAIL_FROM_NAME
"System"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
FACEBOOK_APP_ID
"591168491308910"
FACEBOOK_APP_SECRET
"b7a8c3370c1004e62f3ae8a8b5980150"
FACEBOOK_API_VERSION
"v3.2"
FACEBOOK_ACCESS_TOKEN
"591168491308910|XxH369t9IKbOAo_maobMZAngC0k"
A2B_API_URI
"http://a2b_api.comfi.com:8094/api/v1/"
FCM_SERVER_KEY
"AAAArP3uFck:APA91bG7cnV7AoK8_lEmxlQlO_p070A7xrYFUwkZEyYZYiGNHMdLrB6A8TxB2si_vDjrMdG_o201z2MJN_j5uM09NcqwsHth9EcaG0FDgeT3UTOCt6z79SqJsDwQNpXAWYG4weuvMCbj"
FCM_SENDER_ID
"ComfiCom"
FCM_LOG
"false"
COMFI_DB_HOST
"cdbs"
COMFI_DB_PORT
"3306"
COMFI_DB_USERNAME
"adminuser"
COMFI_DB_PASSWORD
"Judnmfr73jd6"
COMFI_DB_DATABASE
"bell"
Key Value
APP_NAME
"Comfi Admin v2.0"
APP_ENV
"production"
APP_KEY
"base64:oE3Lvwxg78EhVJQC4XfJ2+Ro4uUNLRBGiwbPSiuhRO4="
APP_DEBUG
"true"
APP_URL
"https://admin2.comfi.com/"
FORCE_SCHEME_HTTPS
"true"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"admin2"
DB_USERNAME
"wolf"
DB_PASSWORD
"itmaster"
DB_CDDB_CONNECTION
"mysql"
DB_CDDB_HOST
"db"
DB_CDDB_PORT
"3306"
DB_CDDB_DATABASE
""
DB_CDDB_USERNAME
"admPanel2"
DB_CDDB_PASSWORD
"itmaster"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"memcached"
QUEUE_CONNECTION
"database"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"172.16.21.6"
MAIL_PORT
"25"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
MAIL_FROM_ADDRESS
"noreplay@comfi.com"
MAIL_FROM_NAME
"System"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
FACEBOOK_APP_ID
"591168491308910"
FACEBOOK_APP_SECRET
"b7a8c3370c1004e62f3ae8a8b5980150"
FACEBOOK_API_VERSION
"v3.2"
FACEBOOK_ACCESS_TOKEN
"591168491308910|XxH369t9IKbOAo_maobMZAngC0k"
A2B_API_URI
"http://a2b_api.comfi.com:8094/api/v1/"
FCM_SERVER_KEY
"AAAArP3uFck:APA91bG7cnV7AoK8_lEmxlQlO_p070A7xrYFUwkZEyYZYiGNHMdLrB6A8TxB2si_vDjrMdG_o201z2MJN_j5uM09NcqwsHth9EcaG0FDgeT3UTOCt6z79SqJsDwQNpXAWYG4weuvMCbj"
FCM_SENDER_ID
"ComfiCom"
FCM_LOG
"false"
COMFI_DB_HOST
"cdbs"
COMFI_DB_PORT
"3306"
COMFI_DB_USERNAME
"adminuser"
COMFI_DB_PASSWORD
"Judnmfr73jd6"
COMFI_DB_DATABASE
"bell"
0. Whoops\Handler\PrettyPageHandler
Illuminate \ Database \ QueryException (2002)
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)
Previous exceptions
  • SQLSTATE[HY000] [2002] No such file or directory (2002)
  • SQLSTATE[HY000] [2002] No such file or directory (2002)
Illuminate\Database\QueryException thrown with message "SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)" Stacktrace: #36 Illuminate\Database\QueryException in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 #35 Doctrine\DBAL\Driver\PDOException in /var/www/html/vhosts/adminV2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31 #34 PDOException in /var/www/html/vhosts/adminV2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27 #33 PDO:__construct in /var/www/html/vhosts/adminV2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27 #32 Doctrine\DBAL\Driver\PDOConnection:__construct in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67 #31 Illuminate\Database\Connectors\Connector:createPdoConnection in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:46 #30 Illuminate\Database\Connectors\Connector:createConnection in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 #29 Illuminate\Database\Connectors\MySqlConnector:connect in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 #28 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #27 call_user_func in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #26 Illuminate\Database\Connection:getPdo in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:943 #25 Illuminate\Database\Connection:getReadPdo in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 #24 Illuminate\Database\Connection:getPdoForSelect in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:325 #23 Illuminate\Database\Connection:Illuminate\Database\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 #22 Illuminate\Database\Connection:runQueryCallback in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 #21 Illuminate\Database\Connection:run in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 #20 Illuminate\Database\Connection:select in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2095 #19 Illuminate\Database\Query\Builder:runSelect in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2083 #18 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2569 #17 Illuminate\Database\Query\Builder:onceWithColumns in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2084 #16 Illuminate\Database\Query\Builder:get in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:519 #15 Illuminate\Database\Eloquent\Builder:getModels in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:503 #14 Illuminate\Database\Eloquent\Builder:get in /var/www/html/vhosts/adminV2/app/Modules/SitemapAnalyzer/Models/Storage.php:46 #13 App\Modules\SitemapAnalyzer\Models\Storage:__getSitemapInProgress in /var/www/html/vhosts/adminV2/app/Modules/SitemapAnalyzer/Models/Storage.php:40 #12 App\Modules\SitemapAnalyzer\Models\Storage:getSitemapInProgress in /var/www/html/vhosts/adminV2/app/Modules/SitemapAnalyzer/Jobs/SitemapCheck.php:26 #11 App\Modules\SitemapAnalyzer\Jobs\SitemapCheck:__construct in /var/www/html/vhosts/adminV2/app/Console/Kernel.php:48 #10 App\Console\Kernel:schedule in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:107 #9 Illuminate\Foundation\Console\Kernel:defineConsoleSchedule in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:90 #8 Illuminate\Foundation\Console\Kernel:Illuminate\Foundation\Console\{closure} in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:858 #7 call_user_func in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:858 #6 Illuminate\Foundation\Application:fireAppCallbacks in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:807 #5 Illuminate\Foundation\Application:boot in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 #4 Illuminate\Foundation\Bootstrap\BootProviders:bootstrap in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:211 #3 Illuminate\Foundation\Application:bootstrapWith in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 #2 Illuminate\Foundation\Http\Kernel:bootstrap in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/html/vhosts/adminV2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in /var/www/html/vhosts/adminV2/public/index.php:55
36
Illuminate
\
Database
\
QueryException
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
664
35
Doctrine
\
DBAL
\
Driver
\
PDOException
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
31
34
PDOException
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
27
33
PDO
__construct
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
27
32
Doctrine
\
DBAL
\
Driver
\
PDOConnection
__construct
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
67
31
Illuminate
\
Database
\
Connectors
\
Connector
createPdoConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
46
30
Illuminate
\
Database
\
Connectors
\
Connector
createConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
MySqlConnector.php
24
29
Illuminate
\
Database
\
Connectors
\
MySqlConnector
connect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
ConnectionFactory.php
182
28
Illuminate
\
Database
\
Connectors
\
ConnectionFactory
Illuminate
\
Database
\
Connectors
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
918
27
call_user_func
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
918
26
Illuminate
\
Database
\
Connection
getPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
943
25
Illuminate
\
Database
\
Connection
getReadPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
399
24
Illuminate
\
Database
\
Connection
getPdoForSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
325
23
Illuminate
\
Database
\
Connection
Illuminate
\
Database
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
657
22
Illuminate
\
Database
\
Connection
runQueryCallback
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
624
21
Illuminate
\
Database
\
Connection
run
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
333
20
Illuminate
\
Database
\
Connection
select
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2095
19
Illuminate
\
Database
\
Query
\
Builder
runSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2083
18
Illuminate
\
Database
\
Query
\
Builder
Illuminate
\
Database
\
Query
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2569
17
Illuminate
\
Database
\
Query
\
Builder
onceWithColumns
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2084
16
Illuminate
\
Database
\
Query
\
Builder
get
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
519
15
Illuminate
\
Database
\
Eloquent
\
Builder
getModels
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
503
14
Illuminate
\
Database
\
Eloquent
\
Builder
get
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
46
13
App
\
Modules
\
SitemapAnalyzer
\
Models
\
Storage
__getSitemapInProgress
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
40
12
App
\
Modules
\
SitemapAnalyzer
\
Models
\
Storage
getSitemapInProgress
/
app
/
Modules
/
SitemapAnalyzer
/
Jobs
/
SitemapCheck.php
26
11
App
\
Modules
\
SitemapAnalyzer
\
Jobs
\
SitemapCheck
__construct
/
app
/
Console
/
Kernel.php
48
10
App
\
Console
\
Kernel
schedule
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
107
9
Illuminate
\
Foundation
\
Console
\
Kernel
defineConsoleSchedule
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
90
8
Illuminate
\
Foundation
\
Console
\
Kernel
Illuminate
\
Foundation
\
Console
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
858
7
call_user_func
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
858
6
Illuminate
\
Foundation
\
Application
fireAppCallbacks
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
807
5
Illuminate
\
Foundation
\
Application
boot
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Bootstrap
/
BootProviders.php
17
4
Illuminate
\
Foundation
\
Bootstrap
\
BootProviders
bootstrap
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
211
3
Illuminate
\
Foundation
\
Application
bootstrapWith
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
162
2
Illuminate
\
Foundation
\
Http
\
Kernel
bootstrap
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
146
1
Illuminate
\
Foundation
\
Http
\
Kernel
sendRequestThroughRouter
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
116
0
Illuminate
\
Foundation
\
Http
\
Kernel
handle
/
public
/
index.php
55
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
     * @return void
     */
    public function logQuery($query, $bindings, $time = null)
    {
        $this->event(new QueryExecuted($query, $bindings, $time, $this));
 
        if ($this->loggingQueries) {
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)"
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function getServerVersion()
    {
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
 
    /**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array   $config
     * @param  array   $options
     * @return \PDO
     *
     * @throws \Exception
     */
    public function createConnection($dsn, array $config, array $options)
    {
        [$username, $password] = [
            $config['username'] ?? null, $config['password'] ?? null,
        ];
 
        try {
            return $this->createPdoConnection(
                $dsn, $username, $password, $options
            );
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
MySqlConnector.php
use PDO;
 
class MySqlConnector extends Connector implements ConnectorInterface
{
    /**
     * Establish a database connection.
     *
     * @param  array  $config
     * @return \PDO
     */
    public function connect(array $config)
    {
        $dsn = $this->getDsn($config);
 
        $options = $this->getOptions($config);
 
        // We need to grab the PDO options that should be used while making the brand
        // new connection instance. The PDO options control various aspects of the
        // connection's behavior, and some might be specified by the developers.
        $connection = $this->createConnection($dsn, $config, $options);
 
        if (! empty($config['database'])) {
            $connection->exec("use `{$config['database']}`;");
        }
 
        $this->configureEncoding($connection, $config);
 
        // Next, we will check to see if a timezone has been specified in this config
        // and if it has we will issue a statement to modify the timezone with the
        // database. Setting this DB timezone is an optional configuration item.
        $this->configureTimezone($connection, $config);
 
        $this->setModes($connection, $config);
 
        return $connection;
    }
 
    /**
     * Set the connection character set and collation.
     *
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. array:14 [
      "driver" => "mysql"
      "host" => "localhost"
      "port" => "3306"
      "database" => "admin2"
      "username" => "wolf"
      "password" => "itmaster"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
  3. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
ConnectionFactory.php
    {
        return array_key_exists('host', $config)
                            ? $this->createPdoResolverWithHosts($config)
                            : $this->createPdoResolverWithoutHosts($config);
    }
 
    /**
     * Create a new Closure that resolves to a PDO instance with a specific host or an array of hosts.
     *
     * @param  array  $config
     * @return \Closure
     */
    protected function createPdoResolverWithHosts(array $config)
    {
        return function () use ($config) {
            foreach (Arr::shuffle($hosts = $this->parseHosts($config)) as $key => $host) {
                $config['host'] = $host;
 
                try {
                    return $this->createConnector($config)->connect($config);
                } catch (PDOException $e) {
                    continue;
                }
            }
 
            throw $e;
        };
    }
 
    /**
     * Parse the hosts configuration item into an array.
     *
     * @param  array  $config
     * @return array
     */
    protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);
 
        if (empty($hosts)) {
Arguments
  1. array:14 [
      "driver" => "mysql"
      "host" => "localhost"
      "port" => "3306"
      "database" => "admin2"
      "username" => "wolf"
      "password" => "itmaster"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
Arguments
  1. Closure() {#143 …5}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
        if ($this->readPdo instanceof Closure) {
            return $this->readPdo = call_user_func($this->readPdo);
        }
 
        return $this->readPdo ?: $this->getPdo();
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
        $this->transactions = 0;
 
        $this->pdo = $pdo;
 
        return $this;
    }
 
    /**
     * Set the PDO connection used for reading.
     *
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new Events\StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return int
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
Arguments
  1. true
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     * Run a SQL statement and log its execution context.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function run($query, $bindings, Closure $callback)
    {
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. Closure($query, $bindings) {#274 …6}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
        $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // First we will create a statement for the query. Then, we will set the fetch
            // mode and prepare the bindings for the query. Once that's done we will be
            // ready to execute the query against the database and return the cursor.
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. Closure($query, $bindings) {#274 …6}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
     * @param  int|null  $page
     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
     */
    public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
    {
        $page = $page ?: Paginator::resolveCurrentPage($pageName);
 
        $total = $this->getCountForPagination($columns);
 
        $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
 
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. true
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     * @param  string  $column
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
    }
 
    /**
     * Execute the given callback while selecting the given columns.
     *
     * After running the callback, the columns are reset to the original value.
     *
     * @param  array  $columns
     * @param  callable  $callback
     * @return mixed
     */
    protected function onceWithColumns($columns, $callback)
    {
        $original = $this->columns;
 
        if (is_null($original)) {
            $this->columns = $columns;
        }
 
        $result = $callback();
 
        $this->columns = $original;
 
        return $result;
    }
 
    /**
     * Insert a new record into the database.
     *
     * @param  array  $values
     * @return bool
     */
    public function insert(array $values)
    {
        // Since every insert gets treated like a batch insert, we will make sure the
        // bindings are structured in a way that is convenient when building these
        // inserts statements by verifying these elements are actually an array.
        if (empty($values)) {
            return true;
        }
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
Arguments
  1. array:1 [
      0 => "*"
    ]
    
  2. Closure() {#269 …4}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
     * Eager load the relationships for the models.
     *
     * @param  array  $models
     * @return array
     */
    public function eagerLoadRelations(array $models)
    {
        foreach ($this->eagerLoad as $name => $constraints) {
            // For nested eager loads we'll skip loading them here and they will be set as an
            // eager load on the query to retrieve the relation so that they will be eager
            // loaded on that query, because that is where they get hydrated as models.
            if (strpos($name, '.') === false) {
                $models = $this->eagerLoadRelation($models, $name, $constraints);
            }
        }
 
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
    {
        if ($result = $this->first([$column])) {
            return $result->{$column};
        }
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
    public function get($columns = ['*'])
    {
        $builder = $this->applyScopes();
 
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
 
    public function __createNew($sitemapUrl)
    {
        $this->user_id = \getUserId();
        $this->status = self::STATUS_NEW;
        $this->url = $sitemapUrl;
        $this->save();
 
        return $this;
    }
 
    public static function getSitemapInProgress(int $userId = 0)
    {
        return (new Storage())->__getSitemapInProgress($userId);
    }
 
    public function __getSitemapInProgress(int $userId = 0)
    {
        if($userId === 0)
            return $this->where('status',self::STATUS_IN_PROGRESS)->get();
 
        return $this
                ->where('user_id',$userId)
                ->where(function($query){
                    $query->whereIn('status',[self::STATUS_IN_PROGRESS, self::STATUS_IN_PROGRESS_PARSE]);
                })
                ->get();
    }
 
    public static function getSitemapInProgressParse()
    {
        return (new Storage())->__getSitemapInProgressParse();
    }
 
    public function __getSitemapInProgressParse()
    {
        return $this->where('status',self::STATUS_IN_PROGRESS_PARSE)->get();
    }
 
    public function __countChildrenInWork()
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Modules
/
SitemapAnalyzer
/
Models
/
Storage.php
    protected $table = 'sitemap_storage';
 
    public static function createNew($sitemapUrl)
    {
        return (new Storage())->__createNew($sitemapUrl);
    }
 
    public function __createNew($sitemapUrl)
    {
        $this->user_id = \getUserId();
        $this->status = self::STATUS_NEW;
        $this->url = $sitemapUrl;
        $this->save();
 
        return $this;
    }
 
    public static function getSitemapInProgress(int $userId = 0)
    {
        return (new Storage())->__getSitemapInProgress($userId);
    }
 
    public function __getSitemapInProgress(int $userId = 0)
    {
        if($userId === 0)
            return $this->where('status',self::STATUS_IN_PROGRESS)->get();
 
        return $this
                ->where('user_id',$userId)
                ->where(function($query){
                    $query->whereIn('status',[self::STATUS_IN_PROGRESS, self::STATUS_IN_PROGRESS_PARSE]);
                })
                ->get();
    }
 
    public static function getSitemapInProgressParse()
    {
        return (new Storage())->__getSitemapInProgressParse();
    }
 
Arguments
  1. 0
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Modules
/
SitemapAnalyzer
/
Jobs
/
SitemapCheck.php
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
 
class SitemapCheck implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
 
    protected $newSitemaps;
 
    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->newSitemaps = Storage::getSitemapInProgress();
    }
 
    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        foreach($this->newSitemaps as $item)
        {
            $sitemapItems = StorageItems::getBySitemapId($item->id);
 
            foreach($sitemapItems as $itemUrl){
                SitemapCheckNode::dispatch($itemUrl);
            }
 
            $item->status = Storage::STATUS_IN_PROGRESS_PARSE;
            $item->update();
        }
/
var
/
www
/
html
/
vhosts
/
adminV2
/
app
/
Console
/
Kernel.php
        ModuleMigrationCreator::class,
        ModuleControllerCreator::class,
        ShowModules::class,
        ModuleEnable::class,
        CreateAdminUser::class,
        CreateAdminGroup::class,
    ];
 
    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        if(config('app.debug'))
                \Log::info('Schedule kernel start');
 
        $schedule->job(new SitemapCheck)->everyMinute();
        $schedule->job(new SitemapFinisher)->everyMinute();
    }   
 
    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');
 
        require base_path('routes/console.php');
    }
}
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
 
        $this->app->booted(function () {
            $this->defineConsoleSchedule();
        });
    }
 
    /**
     * Define the application's command schedule.
     *
     * @return void
     */
    protected function defineConsoleSchedule()
    {
        $this->app->singleton(Schedule::class, function () {
            return new Schedule;
        });
 
        $schedule = $this->app->make(Schedule::class);
 
        $this->schedule($schedule);
    }
 
    /**
     * Run the console application.
     *
     * @param  \Symfony\Component\Console\Input\InputInterface  $input
     * @param  \Symfony\Component\Console\Output\OutputInterface  $output
     * @return int
     */
    public function handle($input, $output = null)
    {
        try {
            $this->bootstrap();
 
            return $this->getArtisan()->run($input, $output);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $this->renderException($output, $e);
 
Arguments
  1. Schedule {#31}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Console
/
Kernel.php
    ];
 
    /**
     * Create a new console kernel instance.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @param  \Illuminate\Contracts\Events\Dispatcher  $events
     * @return void
     */
    public function __construct(Application $app, Dispatcher $events)
    {
        if (! defined('ARTISAN_BINARY')) {
            define('ARTISAN_BINARY', 'artisan');
        }
 
        $this->app = $app;
        $this->events = $events;
 
        $this->app->booted(function () {
            $this->defineConsoleSchedule();
        });
    }
 
    /**
     * Define the application's command schedule.
     *
     * @return void
     */
    protected function defineConsoleSchedule()
    {
        $this->app->singleton(Schedule::class, function () {
            return new Schedule;
        });
 
        $schedule = $this->app->make(Schedule::class);
 
        $this->schedule($schedule);
    }
 
    /**
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
     */
    public function booted($callback)
    {
        $this->bootedCallbacks[] = $callback;
 
        if ($this->isBooted()) {
            $this->fireAppCallbacks([$callback]);
        }
    }
 
    /**
     * Call the booting callbacks for the application.
     *
     * @param  callable[]  $callbacks
     * @return void
     */
    protected function fireAppCallbacks(array $callbacks)
    {
        foreach ($callbacks as $callback) {
            call_user_func($callback, $this);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function handle(SymfonyRequest $request, $type = self::MASTER_REQUEST, $catch = true)
    {
        return $this[HttpKernelContract::class]->handle(Request::createFromBase($request));
    }
 
    /**
     * Determine if middleware has been disabled for the application.
     *
     * @return bool
     */
    public function shouldSkipMiddleware()
    {
        return $this->bound('middleware.disable') &&
               $this->make('middleware.disable') === true;
Arguments
  1. Application {#2}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
     */
    public function booted($callback)
    {
        $this->bootedCallbacks[] = $callback;
 
        if ($this->isBooted()) {
            $this->fireAppCallbacks([$callback]);
        }
    }
 
    /**
     * Call the booting callbacks for the application.
     *
     * @param  callable[]  $callbacks
     * @return void
     */
    protected function fireAppCallbacks(array $callbacks)
    {
        foreach ($callbacks as $callback) {
            call_user_func($callback, $this);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function handle(SymfonyRequest $request, $type = self::MASTER_REQUEST, $catch = true)
    {
        return $this[HttpKernelContract::class]->handle(Request::createFromBase($request));
    }
 
    /**
     * Determine if middleware has been disabled for the application.
     *
     * @return bool
     */
    public function shouldSkipMiddleware()
    {
        return $this->bound('middleware.disable') &&
               $this->make('middleware.disable') === true;
Arguments
  1. Closure() {#216 …4}
    
  2. Application {#2}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
     * @return void
     */
    public function boot()
    {
        if ($this->booted) {
            return;
        }
 
        // Once the application has booted we will also fire some "booted" callbacks
        // for any listeners that need to do work after this initial booting gets
        // finished. This is useful when ordering the boot-up processes we run.
        $this->fireAppCallbacks($this->bootingCallbacks);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
    /**
     * Register a new boot listener.
     *
     * @param  callable  $callback
     * @return void
Arguments
  1. array:2 [
      0 => Closure() {#157 …4}
      1 => Closure() {#216 …4}
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Bootstrap
/
BootProviders.php
<?php
 
namespace Illuminate\Foundation\Bootstrap;
 
use Illuminate\Contracts\Foundation\Application;
 
class BootProviders
{
    /**
     * Bootstrap the given application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    public function bootstrap(Application $app)
    {
        $app->boot();
    }
}
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
    {
        $this->register(new EventServiceProvider($this));
        $this->register(new LogServiceProvider($this));
        $this->register(new RoutingServiceProvider($this));
    }
 
    /**
     * Run the given array of bootstrap classes.
     *
     * @param  string[]  $bootstrappers
     * @return void
     */
    public function bootstrapWith(array $bootstrappers)
    {
        $this->hasBeenBootstrapped = true;
 
        foreach ($bootstrappers as $bootstrapper) {
            $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
 
            $this->make($bootstrapper)->bootstrap($this);
 
            $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
        }
    }
 
    /**
     * Register a callback to run after loading the environment.
     *
     * @param  \Closure  $callback
     * @return void
     */
    public function afterLoadingEnvironment(Closure $callback)
    {
        return $this->afterBootstrapping(
            LoadEnvironmentVariables::class, $callback
        );
    }
 
    /**
     * Register a callback to run before a bootstrapper.
Arguments
  1. Application {#2}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
    {
        return function ($request) {
            $this->app->instance('request', $request);
 
            return $this->router->dispatch($request);
        };
    }
 
    /**
     * Call the terminate method on any terminable middleware.
     *
Arguments
  1. array:6 [
      0 => "Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables"
      1 => "Illuminate\Foundation\Bootstrap\LoadConfiguration"
      2 => "Illuminate\Foundation\Bootstrap\HandleExceptions"
      3 => "Illuminate\Foundation\Bootstrap\RegisterFacades"
      4 => "Illuminate\Foundation\Bootstrap\RegisterProviders"
      5 => "Illuminate\Foundation\Bootstrap\BootProviders"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
    {
        $this->app->instance('request', $request);
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
            $router->middlewareGroup($key, $middleware);
        }
 
        foreach ($this->routeMiddleware as $key => $middleware) {
            $router->aliasMiddleware($key, $middleware);
        }
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        } catch (Throwable $e) {
            $this->reportException($e = new FatalThrowableError($e));
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: null
      #requestUri: null
      #baseUrl: null
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "/serviceminificator/api/v1/recource/minification"
      requestUri: "/serviceminificator/api/v1/recource/minification?base_url=https://comfi.com/img/styles.css&content_type=css&output_format=css"
      baseUrl: ""
      basePath: ""
      method: "GET"
      format: "html"
    }
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
public
/
index.php
*/
 
$app = require_once __DIR__.'/../bootstrap/app.php';
 
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
 
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
 
$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);
 
$response->send();
 
$kernel->terminate($request, $response);
 
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: null
      #requestUri: null
      #baseUrl: null
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "/serviceminificator/api/v1/recource/minification"
      requestUri: "/serviceminificator/api/v1/recource/minification?base_url=https://comfi.com/img/styles.css&content_type=css&output_format=css"
      baseUrl: ""
      basePath: ""
      method: "GET"
      format: "html"
    }
    

Environment & details:

Key Value
base_url
"https://comfi.com/img/styles.css"
content_type
"css"
output_format
"css"
empty
empty
empty
empty
Key Value
USER
"apache"
HOME
"/usr/share/httpd"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_HOST
"admin2.comfi.com"
REDIRECT_STATUS
"200"
SERVER_NAME
"admin2.comfi.com"
SERVER_PORT
"443"
SERVER_ADDR
"172.16.21.41"
REMOTE_PORT
"42040"
REMOTE_ADDR
"172.16.2.94"
SERVER_SOFTWARE
"nginx/1.10.1"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
REQUEST_SCHEME
"https"
SERVER_PROTOCOL
"HTTP/1.1"
DOCUMENT_ROOT
"/var/www/html/vhosts/adminV2/public"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/serviceminificator/api/v1/recource/minification?base_url=https://comfi.com/img/styles.css&content_type=css&output_format=css"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
"base_url=https://comfi.com/img/styles.css&content_type=css&output_format=css"
SCRIPT_FILENAME
"/var/www/html/vhosts/adminV2/public/index.php"
PATH_INFO
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1571707166.198
REQUEST_TIME
1571707166
APP_NAME
"Comfi Admin v2.0"
APP_ENV
"production"
APP_KEY
"base64:oE3Lvwxg78EhVJQC4XfJ2+Ro4uUNLRBGiwbPSiuhRO4="
APP_DEBUG
"true"
APP_URL
"https://admin2.comfi.com/"
FORCE_SCHEME_HTTPS
"true"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"admin2"
DB_USERNAME
"wolf"
DB_PASSWORD
"itmaster"
DB_CDDB_CONNECTION
"mysql"
DB_CDDB_HOST
"db"
DB_CDDB_PORT
"3306"
DB_CDDB_DATABASE
""
DB_CDDB_USERNAME
"admPanel2"
DB_CDDB_PASSWORD
"itmaster"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"memcached"
QUEUE_CONNECTION
"database"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"172.16.21.6"
MAIL_PORT
"25"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
MAIL_FROM_ADDRESS
"noreplay@comfi.com"
MAIL_FROM_NAME
"System"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
FACEBOOK_APP_ID
"591168491308910"
FACEBOOK_APP_SECRET
"b7a8c3370c1004e62f3ae8a8b5980150"
FACEBOOK_API_VERSION
"v3.2"
FACEBOOK_ACCESS_TOKEN
"591168491308910|XxH369t9IKbOAo_maobMZAngC0k"
A2B_API_URI
"http://a2b_api.comfi.com:8094/api/v1/"
FCM_SERVER_KEY
"AAAArP3uFck:APA91bG7cnV7AoK8_lEmxlQlO_p070A7xrYFUwkZEyYZYiGNHMdLrB6A8TxB2si_vDjrMdG_o201z2MJN_j5uM09NcqwsHth9EcaG0FDgeT3UTOCt6z79SqJsDwQNpXAWYG4weuvMCbj"
FCM_SENDER_ID
"ComfiCom"
FCM_LOG
"false"
COMFI_DB_HOST
"cdbs"
COMFI_DB_PORT
"3306"
COMFI_DB_USERNAME
"adminuser"
COMFI_DB_PASSWORD
"Judnmfr73jd6"
COMFI_DB_DATABASE
"bell"
Key Value
APP_NAME
"Comfi Admin v2.0"
APP_ENV
"production"
APP_KEY
"base64:oE3Lvwxg78EhVJQC4XfJ2+Ro4uUNLRBGiwbPSiuhRO4="
APP_DEBUG
"true"
APP_URL
"https://admin2.comfi.com/"
FORCE_SCHEME_HTTPS
"true"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"admin2"
DB_USERNAME
"wolf"
DB_PASSWORD
"itmaster"
DB_CDDB_CONNECTION
"mysql"
DB_CDDB_HOST
"db"
DB_CDDB_PORT
"3306"
DB_CDDB_DATABASE
""
DB_CDDB_USERNAME
"admPanel2"
DB_CDDB_PASSWORD
"itmaster"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"memcached"
QUEUE_CONNECTION
"database"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"172.16.21.6"
MAIL_PORT
"25"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
MAIL_FROM_ADDRESS
"noreplay@comfi.com"
MAIL_FROM_NAME
"System"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
FACEBOOK_APP_ID
"591168491308910"
FACEBOOK_APP_SECRET
"b7a8c3370c1004e62f3ae8a8b5980150"
FACEBOOK_API_VERSION
"v3.2"
FACEBOOK_ACCESS_TOKEN
"591168491308910|XxH369t9IKbOAo_maobMZAngC0k"
A2B_API_URI
"http://a2b_api.comfi.com:8094/api/v1/"
FCM_SERVER_KEY
"AAAArP3uFck:APA91bG7cnV7AoK8_lEmxlQlO_p070A7xrYFUwkZEyYZYiGNHMdLrB6A8TxB2si_vDjrMdG_o201z2MJN_j5uM09NcqwsHth9EcaG0FDgeT3UTOCt6z79SqJsDwQNpXAWYG4weuvMCbj"
FCM_SENDER_ID
"ComfiCom"
FCM_LOG
"false"
COMFI_DB_HOST
"cdbs"
COMFI_DB_PORT
"3306"
COMFI_DB_USERNAME
"adminuser"
COMFI_DB_PASSWORD
"Judnmfr73jd6"
COMFI_DB_DATABASE
"bell"
0. Whoops\Handler\PrettyPageHandler

Get calling cards instantly on screen and by email

Best International Prepaid Phone Card to Ukraine for:

Frequent Calls

Master Cent Phone Card

Occasional Calls

FastWorld Phone Card

Travel

Solaris Phone Card

Cheapest Calling Cards to Ukraine from Germany - Munich

Phone Card

Local
Details
16.3 ¢/min
88¢ / week
18¢ connection
Details
17.0 ¢/min
89¢ / week
Details
18.0 ¢/min
No Fee
Details
18.1 ¢/min
59¢ / 2 weeks
Details
19.5 ¢/min
No Fee
Details
20.7 ¢/min
No Fee
Details
120.0 ¢/min
No Fee
Details

Why should I buy a phone card online?

Phone cards online offer domestic and international rates that are usually much lower than rates offered by residential phone service providers and prepaid phone cards sold in stores.

Looking to buy international calling cards for calling abroad from Germany - Munich to Ukraine? Comfi sells the best international calling cards that will make your connection with friends, family or business partners advantageous and first-grade.

We provide a wide range of international phone cards to call from Germany - Munich to Ukraine.

Partner calling card is a safe, comfortable and easy way to get in touch with recipient abroad. The basic characteristic is the option to top up it. Thus, you can add funds to the account without buying a new calling card.

This phone card has the following positive sides.

  1. High-quality connection. No lines breaks, noise or any other common phone issues. If your recipient's phone is working properly, you will feel like you're talking to a someone living next door.
  2. Affordable costs. On our site we've collected the cheapest calling cards. Your conversations won't be high-priced and you will discuss whatever you want with no hurry. You will be able to economize up to 75% on international calls.
  3. Friendly and professional support. Have any questions? Feel free to ask our support agents via email, live chat or phone. Be sure - you will receive a accurate and quick answer.
  4. Instant delivery of the card number over the air or by email. No need to wait - start calling right away!

How to use the calling card?

  1. Dial access number and wait for the prompt.
  2. Once you hear the prompt, select prompt language.
  3. Enter your card number and wait for the prompt.
  4. Dial your destination number. For international calls: 011 + countrycode + City Code + Phone Number

We're sincerely hoping to see you among our clients. We'll guarantee you high level of services and support in every step of using our international calls card. Our main purpose is to make people closer to each other and provide good and flawless connection even if people are thousands of miles apart from each other.

Start using our international call cards right now and enjoy premium class phone connection across the world!

  • Save up to 75% on international calls
  • Boston, MA based customer service

ComFi.com BBB Business Review
Need Assistance?

USA: (800) 219-6993

Global: +1 (617) 861-4107

Mon - Fri 9AM - 9PM EST
Sat 11AM - 5PM EST

Contact Us Online

Customer Testimonials

"I'm so happy with this website and their phones card!! I love it! Thanks"

Sara A, Hamden, CT

"This is very very great! I would recommend this to anyone!"

Peter, helped via chat support.

More testimonials

"SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `sitemap_storage` where `status` = 20)"
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function getServerVersion()
    {
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "SQLSTATE[HY000] [2002] No such file or directory"
    
Exception message: SQLSTATE[HY000] [2002] No such file or directory
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
 
    /**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array   $config
     * @param  array   $options
     * @return \PDO
     *
     * @throws \Exception
     */
    public function createConnection($dsn, array $config, array $options)
    {
        [$username, $password] = [
            $config['username'] ?? null, $config['password'] ?? null,
        ];
 
        try {
            return $this->createPdoConnection(
                $dsn, $username, $password, $options
            );
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. "wolf"
    
  3. "itmaster"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
MySqlConnector.php
use PDO;
 
class MySqlConnector extends Connector implements ConnectorInterface
{
    /**
     * Establish a database connection.
     *
     * @param  array  $config
     * @return \PDO
     */
    public function connect(array $config)
    {
        $dsn = $this->getDsn($config);
 
        $options = $this->getOptions($config);
 
        // We need to grab the PDO options that should be used while making the brand
        // new connection instance. The PDO options control various aspects of the
        // connection's behavior, and some might be specified by the developers.
        $connection = $this->createConnection($dsn, $config, $options);
 
        if (! empty($config['database'])) {
            $connection->exec("use `{$config['database']}`;");
        }
 
        $this->configureEncoding($connection, $config);
 
        // Next, we will check to see if a timezone has been specified in this config
        // and if it has we will issue a statement to modify the timezone with the
        // database. Setting this DB timezone is an optional configuration item.
        $this->configureTimezone($connection, $config);
 
        $this->setModes($connection, $config);
 
        return $connection;
    }
 
    /**
     * Set the connection character set and collation.
     *
Arguments
  1. "mysql:host=localhost;port=3306;dbname=admin2"
    
  2. array:14 [
      "driver" => "mysql"
      "host" => "localhost"
      "port" => "3306"
      "database" => "admin2"
      "username" => "wolf"
      "password" => "itmaster"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
  3. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
ConnectionFactory.php
    {
        return array_key_exists('host', $config)
                            ? $this->createPdoResolverWithHosts($config)
                            : $this->createPdoResolverWithoutHosts($config);
    }
 
    /**
     * Create a new Closure that resolves to a PDO instance with a specific host or an array of hosts.
     *
     * @param  array  $config
     * @return \Closure
     */
    protected function createPdoResolverWithHosts(array $config)
    {
        return function () use ($config) {
            foreach (Arr::shuffle($hosts = $this->parseHosts($config)) as $key => $host) {
                $config['host'] = $host;
 
                try {
                    return $this->createConnector($config)->connect($config);
                } catch (PDOException $e) {
                    continue;
                }
            }
 
            throw $e;
        };
    }
 
    /**
     * Parse the hosts configuration item into an array.
     *
     * @param  array  $config
     * @return array
     */
    protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);
 
        if (empty($hosts)) {
Arguments
  1. array:14 [
      "driver" => "mysql"
      "host" => "localhost"
      "port" => "3306"
      "database" => "admin2"
      "username" => "wolf"
      "password" => "itmaster"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
Arguments
  1. Closure() {#143 …5}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
        if ($this->readPdo instanceof Closure) {
            return $this->readPdo = call_user_func($this->readPdo);
        }
 
        return $this->readPdo ?: $this->getPdo();
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
        $this->transactions = 0;
 
        $this->pdo = $pdo;
 
        return $this;
    }
 
    /**
     * Set the PDO connection used for reading.
     *
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new Events\StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return int
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
Arguments
  1. true
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     * Run a SQL statement and log its execution context.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function run($query, $bindings, Closure $callback)
    {
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. Closure($query, $bindings) {#274 …6}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
        $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // First we will create a statement for the query. Then, we will set the fetch
            // mode and prepare the bindings for the query. Once that's done we will be
            // ready to execute the query against the database and return the cursor.
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. Closure($query, $bindings) {#274 …6}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
     * @param  int|null  $page
     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
     */
    public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
    {
        $page = $page ?: Paginator::resolveCurrentPage($pageName);
 
        $total = $this->getCountForPagination($columns);
 
        $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
 
Arguments
  1. "select * from `sitemap_storage` where `status` = ?"
    
  2. array:1 [
      0 => 20
    ]
    
  3. true
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     * @param  string  $column
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
    }
 
    /**
     * Execute the given callback while selecting the given columns.
     *
     * After running the callback, the columns are reset to the original value.
     *
     * @param  array  $columns
     * @param  callable  $callback
     * @return mixed
     */
    protected function onceWithColumns($columns, $callback)
    {
        $original = $this->columns;
 
        if (is_null($original)) {
            $this->columns = $columns;
        }
 
        $result = $callback();
 
        $this->columns = $original;
 
        return $result;
    }
 
    /**
     * Insert a new record into the database.
     *
     * @param  array  $values
     * @return bool
     */
    public function insert(array $values)
    {
        // Since every insert gets treated like a batch insert, we will make sure the
        // bindings are structured in a way that is convenient when building these
        // inserts statements by verifying these elements are actually an array.
        if (empty($values)) {
            return true;
        }
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
Arguments
  1. array:1 [
      0 => "*"
    ]
    
  2. Closure() {#269 …4}
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
     * Eager load the relationships for the models.
     *
     * @param  array  $models
     * @return array
     */
    public function eagerLoadRelations(array $models)
    {
        foreach ($this->eagerLoad as $name => $constraints) {
            // For nested eager loads we'll skip loading them here and they will be set as an
            // eager load on the query to retrieve the relation so that they will be eager
            // loaded on that query, because that is where they get hydrated as models.
            if (strpos($name, '.') === false) {
                $models = $this->eagerLoadRelation($models, $name, $constraints);
            }
        }
 
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/
var
/
www
/
html
/
vhosts
/
adminV2
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
    {
        if ($result = $this->first([$column])) {
            return $result->{$column};
        }
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
    public function get($columns = ['*'])
    {
        $builder = $this->applyScopes();
 
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
Arguments