/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/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($this, $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;
}
/**
* Handle a query exception that occurred during query execution.
*
* @param \Illuminate\Database\QueryException $e
* @param string $query
* @param array $bindings
* @param \Closure $callback
* @return mixed
*
* @throws \Illuminate\Database\QueryException
*/
protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, Closure $callback)
{
Arguments
"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'jointsmedicine_c.addons_modules' doesn't exist (SQL: select * from `addons_modules` where `installed` = 1 and `enabled` = 1)"
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/doctrine
/dbal
/lib
/Doctrine
/DBAL
/Driver
/PDOConnection.php
}
}
/**
* {@inheritdoc}
*/
public function getServerVersion()
{
return PDO::getAttribute(PDO::ATTR_SERVER_VERSION);
}
/**
* {@inheritdoc}
*/
public function prepare($prepareString, $driverOptions = array())
{
try {
return parent::prepare($prepareString, $driverOptions);
} catch (\PDOException $exception) {
throw new PDOException($exception);
}
}
/**
* {@inheritdoc}
*/
public function query()
{
$args = func_get_args();
$argsCount = count($args);
try {
if ($argsCount == 4) {
return parent::query($args[0], $args[1], $args[2], $args[3]);
}
if ($argsCount == 3) {
return parent::query($args[0], $args[1], $args[2]);
}
Arguments
"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'jointsmedicine_c.addons_modules' doesn't exist"
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/doctrine
/dbal
/lib
/Doctrine
/DBAL
/Driver
/PDOConnection.php
} catch (\PDOException $exception) {
throw new PDOException($exception);
}
}
/**
* {@inheritdoc}
*/
public function getServerVersion()
{
return PDO::getAttribute(PDO::ATTR_SERVER_VERSION);
}
/**
* {@inheritdoc}
*/
public function prepare($prepareString, $driverOptions = array())
{
try {
return parent::prepare($prepareString, $driverOptions);
} catch (\PDOException $exception) {
throw new PDOException($exception);
}
}
/**
* {@inheritdoc}
*/
public function query()
{
$args = func_get_args();
$argsCount = count($args);
try {
if ($argsCount == 4) {
return parent::query($args[0], $args[1], $args[2], $args[3]);
}
if ($argsCount == 3) {
return parent::query($args[0], $args[1], $args[2]);
Arguments
"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'jointsmedicine_c.addons_modules' doesn't exist"
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/doctrine
/dbal
/lib
/Doctrine
/DBAL
/Driver
/PDOConnection.php
} catch (\PDOException $exception) {
throw new PDOException($exception);
}
}
/**
* {@inheritdoc}
*/
public function getServerVersion()
{
return PDO::getAttribute(PDO::ATTR_SERVER_VERSION);
}
/**
* {@inheritdoc}
*/
public function prepare($prepareString, $driverOptions = array())
{
try {
return parent::prepare($prepareString, $driverOptions);
} catch (\PDOException $exception) {
throw new PDOException($exception);
}
}
/**
* {@inheritdoc}
*/
public function query()
{
$args = func_get_args();
$argsCount = count($args);
try {
if ($argsCount == 4) {
return parent::query($args[0], $args[1], $args[2], $args[3]);
}
if ($argsCount == 3) {
return parent::query($args[0], $args[1], $args[2]);
Arguments
"select * from `addons_modules` where `installed` = ? and `enabled` = ?"
[]
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/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 ($me, $query, $bindings) use ($useReadPdo) {
if ($me->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->getPdoForSelect($useReadPdo)->prepare($query);
$me->bindValues($statement, $me->prepareBindings($bindings));
$statement->execute();
$fetchMode = $me->getFetchMode();
$fetchArgument = $me->getFetchArgument();
$fetchConstructorArgument = $me->getFetchConstructorArgument();
if ($fetchMode === PDO::FETCH_CLASS && ! isset($fetchArgument)) {
$fetchArgument = 'StdClass';
$fetchConstructorArgument = null;
}
return isset($fetchArgument)
? $statement->fetchAll($fetchMode, $fetchArgument, $fetchConstructorArgument)
: $statement->fetchAll($fetchMode);
});
}
Arguments
"select * from `addons_modules` where `installed` = ? and `enabled` = ?"
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/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($this, $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;
}
/**
* Handle a query exception that occurred during query execution.
*
* @param \Illuminate\Database\QueryException $e
* @param string $query
* @param array $bindings
Arguments
MySqlConnection {#497}
"select * from `addons_modules` where `installed` = ? and `enabled` = ?"
array:2 [
0 => true
1 => true
]
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/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) {
if ($this->transactions >= 1) {
throw $e;
}
$result = $this->tryAgainIfCausedByLostConnection(
$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.
$time = $this->getElapsedTime($start);
$this->logQuery($query, $bindings, $time);
return $result;
}
Arguments
"select * from `addons_modules` where `installed` = ? and `enabled` = ?"
array:2 [
0 => true
1 => true
]
Closure {#469
class: "Illuminate\Database\Connection"
this: MySqlConnection {#497 …}
parameters: {
$me: {}
$query: {}
$bindings: {}
}
use: {
$useReadPdo: true
}
file: "/var/www/jointsmedicine_c/data/www/jointsmedicine.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
line: "325 to 351"
}
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Database
/Connection.php
// row from the database table, and will either be an array or objects.
$statement = $this->getPdoForSelect($useReadPdo)->prepare($query);
$me->bindValues($statement, $me->prepareBindings($bindings));
$statement->execute();
$fetchMode = $me->getFetchMode();
$fetchArgument = $me->getFetchArgument();
$fetchConstructorArgument = $me->getFetchConstructorArgument();
if ($fetchMode === PDO::FETCH_CLASS && ! isset($fetchArgument)) {
$fetchArgument = 'StdClass';
$fetchConstructorArgument = null;
}
return isset($fetchArgument)
? $statement->fetchAll($fetchMode, $fetchArgument, $fetchConstructorArgument)
: $statement->fetchAll($fetchMode);
});
}
/**
* 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 ($me, $query, $bindings) use ($useReadPdo) {
if ($me->pretending()) {
return [];
}
$statement = $this->getPdoForSelect($useReadPdo)->prepare($query);
$fetchMode = $me->getFetchMode();
Arguments
"select * from `addons_modules` where `installed` = ? and `enabled` = ?"
array:2 [
0 => true
1 => true
]
Closure {#469
class: "Illuminate\Database\Connection"
this: MySqlConnection {#497 …}
parameters: {
$me: {}
$query: {}
$bindings: {}
}
use: {
$useReadPdo: true
}
file: "/var/www/jointsmedicine_c/data/www/jointsmedicine.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
line: "325 to 351"
}
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Database
/Query
/Builder.php
if (is_null($original)) {
$this->columns = $columns;
}
$results = $this->processor->processSelect($this, $this->runSelect());
$this->columns = $original;
return collect($results);
}
/**
* 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();
return new LengthAwarePaginator($results, $total, $perPage, $page, [
Arguments
"select * from `addons_modules` where `installed` = ? and `enabled` = ?"
array:2 [
0 => true
1 => true
]
true
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Database
/Query
/Builder.php
public function first($columns = ['*'])
{
return $this->take(1)->get($columns)->first();
}
/**
* Execute the query as a "select" statement.
*
* @param array $columns
* @return \Illuminate\Support\Collection
*/
public function get($columns = ['*'])
{
$original = $this->columns;
if (is_null($original)) {
$this->columns = $columns;
}
$results = $this->processor->processSelect($this, $this->runSelect());
$this->columns = $original;
return collect($results);
}
/**
* 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
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Database
/Eloquent
/Builder.php
/**
* Register a replacement for the default delete function.
*
* @param \Closure $callback
* @return void
*/
public function onDelete(Closure $callback)
{
$this->onDelete = $callback;
}
/**
* Get the hydrated models without eager loading.
*
* @param array $columns
* @return \Illuminate\Database\Eloquent\Model[]
*/
public function getModels($columns = ['*'])
{
$results = $this->query->get($columns)->all();
$connection = $this->model->getConnectionName();
return $this->model->hydrate($results, $connection)->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->loadRelation($models, $name, $constraints);
Arguments
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Database
/Eloquent
/Builder.php
public function firstOrFail($columns = ['*'])
{
if (! is_null($model = $this->first($columns))) {
return $model;
}
throw (new ModelNotFoundException)->setModel(get_class($this->model));
}
/**
* Execute the query as a "select" statement.
*
* @param array $columns
* @return \Illuminate\Database\Eloquent\Collection|static[]
*/
public function get($columns = ['*'])
{
$builder = $this->applyScopes();
$models = $builder->getModels($columns);
// 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) > 0) {
$models = $builder->eagerLoadRelations($models);
}
return $builder->getModel()->newCollection($models);
}
/**
* Get a single column's value from the first result of a query.
*
* @param string $column
* @return mixed
*/
public function value($column)
{
$result = $this->first([$column]);
Arguments
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/anomaly
/streams-platform
/src
/Model
/EloquentQueryBuilder.php
$this->orderByDefault();
if (PHP_SAPI != 'cli' && env('DB_CACHE') && $this->model->getTtl()) {
$this->rememberIndex();
try {
return app('cache')->remember(
$this->getCacheKey(),
$this->model->getTtl(),
function () use ($columns) {
return parent::get($columns);
}
);
} catch (\Exception $e) {
return parent::get($columns);
}
}
return self::$cache[$this->model->getCacheCollectionKey()][$key] = parent::get($columns);
}
/**
* Return if a table has been joined or not.
*
* @param $table
* @return bool
*/
public function hasJoin($table)
{
if (!$this->query->joins) {
return false;
}
/* @var JoinClause $join */
foreach ($this->query->joins as $join) {
if ($join->table === $table) {
return true;
}
}
Arguments
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/anomaly
/streams-platform
/src
/Addon
/Module
/ModuleModel.php
/**
* Find a module by it's namespace.
*
* @param $namespace
* @return null|ModuleModel
*/
public function findByNamespace($namespace)
{
return $this->where('namespace', $namespace)->first();
}
/**
* Get all enabled module namespaces.
*
* @return EloquentCollection
*/
public function getEnabledNamespaces()
{
return $this->where('installed', true)->where('enabled', true)->get()->pluck('namespace');
}
/**
* Get all installed module namespaces.
*
* @return EloquentCollection
*/
public function getInstalledNamespaces()
{
return $this->where('installed', true)->get()->pluck('namespace');
}
/**
* Return a new collection.
*
* @param array $items
* @return EloquentCollection
*/
public function newCollection(array $items = [])
{
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/anomaly
/streams-platform
/src
/Addon
/AddonManager.php
$this->dispatcher->fire(new AddonsHaveRegistered($this->addons));
}
/**
* Get namespaces for enabled addons.
*
* @return array
*/
protected function getEnabledAddonNamespaces()
{
if (!env('INSTALLED')) {
return [];
}
$modules = $this->modules->cache(
'streams::modules.enabled',
9999,
function () {
return $this->modules->getEnabledNamespaces()->all();
}
);
$extensions = $this->extensions->cache(
'streams::extensions.enabled',
9999,
function () {
return $this->extensions->getEnabledNamespaces()->all();
}
);
return array_merge($modules, $extensions);
}
/**
* Get namespaces for installed addons.
*
* @return array
*/
protected function getInstalledAddonNamespaces()
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Cache
/Repository.php
}
/**
* Get an item from the cache, or store the default value.
*
* @param string $key
* @param \DateTime|float|int $minutes
* @param \Closure $callback
* @return mixed
*/
public function remember($key, $minutes, Closure $callback)
{
// If the item exists in the cache we will just return this immediately
// otherwise we will execute the given Closure and cache the result
// of that execution for the given number of minutes in storage.
if (! is_null($value = $this->get($key))) {
return $value;
}
$this->put($key, $value = $callback(), $minutes);
return $value;
}
/**
* Get an item from the cache, or store the default value forever.
*
* @param string $key
* @param \Closure $callback
* @return mixed
*/
public function sear($key, Closure $callback)
{
return $this->rememberForever($key, $callback);
}
/**
* Get an item from the cache, or store the default value forever.
*
* @param string $key
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Cache
/CacheManager.php
* @param \Closure $callback
* @return $this
*/
public function extend($driver, Closure $callback)
{
$this->customCreators[$driver] = $callback->bindTo($this, $this);
return $this;
}
/**
* Dynamically call the default driver instance.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public function __call($method, $parameters)
{
return $this->store()->$method(...$parameters);
}
}
Arguments
"streams::modules.enabled"
9999
Closure {#464
class: "Anomaly\Streams\Platform\Addon\AddonManager"
this: AddonManager {#500 …}
file: "/var/www/jointsmedicine_c/data/www/jointsmedicine.com/vendor/anomaly/streams-platform/src/Addon/AddonManager.php"
line: "161 to 163"
}
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/anomaly
/streams-platform
/src
/Model
/EloquentModel.php
/**
* Cache a value in the
* model's cache collection.
*
* @param $key
* @param $ttl
* @param $value
* @return mixed
*/
public function cache($key, $ttl, $value)
{
(new CacheCollection())
->make([$key])
->setKey($this->getCacheCollectionKey())
->index();
return app('cache')->remember(
$key,
$ttl ?: $this->getTtl(),
$value
);
}
/**
* Fire a model event.
*
* @param $event
* @return mixed
*/
public function fireEvent($event)
{
return $this->fireModelEvent($event);
}
/**
* Return the entry presenter.
*
* This is against standards but required
* by the presentable interface.
*
Arguments
"remember"
array:3 [
0 => "streams::modules.enabled"
1 => 9999
2 => Closure {#464
class: "Anomaly\Streams\Platform\Addon\AddonManager"
this: AddonManager {#500 …}
file: "/var/www/jointsmedicine_c/data/www/jointsmedicine.com/vendor/anomaly/streams-platform/src/Addon/AddonManager.php"
line: "161 to 163"
}
]
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/anomaly
/streams-platform
/src
/Addon
/AddonManager.php
$this->dispatcher->fire(new AddonsHaveRegistered($this->addons));
}
/**
* Get namespaces for enabled addons.
*
* @return array
*/
protected function getEnabledAddonNamespaces()
{
if (!env('INSTALLED')) {
return [];
}
$modules = $this->modules->cache(
'streams::modules.enabled',
9999,
function () {
return $this->modules->getEnabledNamespaces()->all();
}
);
$extensions = $this->extensions->cache(
'streams::extensions.enabled',
9999,
function () {
return $this->extensions->getEnabledNamespaces()->all();
}
);
return array_merge($modules, $extensions);
}
/**
* Get namespaces for installed addons.
*
* @return array
*/
protected function getInstalledAddonNamespaces()
{
Arguments
"streams::modules.enabled"
9999
Closure {#464
class: "Anomaly\Streams\Platform\Addon\AddonManager"
this: AddonManager {#500 …}
file: "/var/www/jointsmedicine_c/data/www/jointsmedicine.com/vendor/anomaly/streams-platform/src/Addon/AddonManager.php"
line: "161 to 163"
}
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/anomaly
/streams-platform
/src
/Addon
/AddonManager.php
Dispatcher $dispatcher,
ExtensionModel $extensions,
AddonIntegrator $integrator,
AddonCollection $addons
) {
$this->paths = $paths;
$this->addons = $addons;
$this->loader = $loader;
$this->modules = $modules;
$this->integrator = $integrator;
$this->dispatcher = $dispatcher;
$this->extensions = $extensions;
}
/**
* Register all addons.
*/
public function register()
{
$enabled = $this->getEnabledAddonNamespaces();
$installed = $this->getInstalledAddonNamespaces();
$paths = $this->paths->all();
/*
* First load all the addons
* so they're available.
*/
foreach ($paths as $path) {
$this->loader->load($path);
}
$this->loader->register();
/*
* Then register all of the addons now
* that they're all PSR autoloaded.
*/
foreach ($paths as $path) {
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/anomaly
/streams-platform
/src
/StreamsServiceProvider.php
if (!$twig->hasExtension($plugin)) {
$twig->addExtension($this->app->make($plugin));
}
}
if (!$twig->hasExtension('markdown')) {
$twig->addExtension(new MarkdownExtension(new MichelfMarkdownEngine()));
}
$twig->addExtension(
new Extension(
new CacheStrategy(
new CacheAdapter($this->app->make(Repository::class)), new CacheKey()
)
)
);
}
);
$manager->register();
$this->dispatch(new LoadCurrentTheme());
$this->dispatch(new AddViewNamespaces());
/*
* Do this after addons are registered
* so that they can override named routes.
*/
$this->dispatch(new IncludeRoutes());
$events->fire(new Ready());
}
);
}
/**
* Register the service provider.
*
* @return void
*/
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/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 array $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['Illuminate\Contracts\Http\Kernel']->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
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/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 array $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['Illuminate\Contracts\Http\Kernel']->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
Closure {#369
class: "Anomaly\Streams\Platform\StreamsServiceProvider"
this: StreamsServiceProvider {#92 …}
use: {
$events: Dispatcher {#13}
}
file: "/var/www/jointsmedicine_c/data/www/jointsmedicine.com/vendor/anomaly/streams-platform/src/StreamsServiceProvider.php"
line: "245 to 291"
}
Application {#12}
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/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 mixed $callback
* @return void
Arguments
array:2 [
0 => Closure {#302
class: "Illuminate\Foundation\Support\Providers\RouteServiceProvider"
this: RouteServiceProvider {#91 …}
file: "/var/www/jointsmedicine_c/data/www/jointsmedicine.com/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php"
line: "32 to 34"
}
1 => Closure {#369
class: "Anomaly\Streams\Platform\StreamsServiceProvider"
this: StreamsServiceProvider {#92 …}
use: {
$events: Dispatcher {#13}
}
file: "/var/www/jointsmedicine_c/data/www/jointsmedicine.com/vendor/anomaly/streams-platform/src/StreamsServiceProvider.php"
line: "245 to 291"
}
]
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/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
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Application.php
{
$this->register(new EventServiceProvider($this));
$this->register(new RoutingServiceProvider($this));
}
/**
* Run the given array of bootstrap classes.
*
* @param array $bootstrappers
* @return void
*/
public function bootstrapWith(array $bootstrappers)
{
$this->hasBeenBootstrapped = true;
foreach ($bootstrappers as $bootstrapper) {
$this['events']->fire('bootstrapping: '.$bootstrapper, [$this]);
$this->make($bootstrapper)->bootstrap($this);
$this['events']->fire('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(
'Illuminate\Foundation\Bootstrap\DetectEnvironment', $callback
);
}
/**
* Register a callback to run before a bootstrapper.
Arguments
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Kernel.php
* @return $this
*/
public function pushMiddleware($middleware)
{
if (array_search($middleware, $this->middleware) === false) {
$this->middleware[] = $middleware;
}
return $this;
}
/**
* 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);
};
}
/**
* Determine if the kernel has a given middleware.
*
Arguments
array:7 [
0 => "Illuminate\Foundation\Bootstrap\DetectEnvironment"
1 => "Illuminate\Foundation\Bootstrap\LoadConfiguration"
2 => "Illuminate\Foundation\Bootstrap\ConfigureLogging"
3 => "Illuminate\Foundation\Bootstrap\HandleExceptions"
4 => "Illuminate\Foundation\Bootstrap\RegisterFacades"
5 => "Illuminate\Foundation\Bootstrap\RegisterProviders"
6 => "Illuminate\Foundation\Bootstrap\BootProviders"
]
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Kernel.php
}
$this->app['events']->fire('kernel.handled', [$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());
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
{
$middlewares = $this->app->shouldSkipMiddleware() ? [] : array_merge(
$this->gatherRouteMiddleware($request),
$this->middleware
);
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Kernel.php
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->middleware($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']->fire('kernel.handled', [$request, $response]);
return $response;
}
/**
* Send the given request through the middleware / router.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
Arguments
/var
/www
/jointsmedicine_c
/data
/www
/jointsmedicine.com
/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);
$time = number_format(microtime(true) - $start, 2);
/*if (isset($_SERVER['REQUEST_URI'])) {
file_put_contents(__DIR__.'/perfomance.log', $time."s ".$_SERVER['REQUEST_URI']." ".$_SERVER['REMOTE_ADDR']."\n", FILE_APPEND);
}*/
Arguments