}
try {
$reflector = new ReflectionClass($concrete);
} catch (ReflectionException $e) {
throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
}
// If the type is not instantiable, the developer is attempting to resolve
// an abstract type such as an Interface or Abstract Class and there is
// no binding registered for the abstractions so we need to bail out.
// We're ready to instantiate an instance of the concrete type registered for
// the binding. This will instantiate the types, as well as resolve any of
// its "nested" dependencies recursively until all have gotten resolved.
if ($this->isBuildable($concrete, $abstract)) {
$object = $this->build($concrete);
} else {
$object = $this->make($concrete);
}
// If we defined any extenders for this type, we'll need to spin through them
*/
protected function resolve($abstract, $parameters = [], $raiseEvents = true)
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::resolve($abstract, $parameters, $raiseEvents);
}
/**
* Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
*
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function make($abstract, array $parameters = [])
{
return $this->resolve($abstract, $parameters);
}
/**
* {@inheritdoc}
*
*/
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
{
if (is_null($abstract)) {
return Container::getInstance();
}
return Container::getInstance()->make($abstract, $parameters);
}
}
if (! function_exists('app_path')) {
/**
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
if ($concrete instanceof Closure) {
return $concrete($this, $this->getLastParameterOverride());
}
try {
$reflector = new ReflectionClass($concrete);
} catch (ReflectionException $e) {
throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
}
// If the type is not instantiable, the developer is attempting to resolve
if ($concrete instanceof Closure) {
return $concrete($this, $this->getLastParameterOverride());
}
try {
$reflector = new ReflectionClass($concrete);
} catch (ReflectionException $e) {
throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
}
// If the type is not instantiable, the developer is attempting to resolve
// We're ready to instantiate an instance of the concrete type registered for
// the binding. This will instantiate the types, as well as resolve any of
// its "nested" dependencies recursively until all have gotten resolved.
if ($this->isBuildable($concrete, $abstract)) {
$object = $this->build($concrete);
} else {
$object = $this->make($concrete);
}
// If we defined any extenders for this type, we'll need to spin through them
*/
protected function resolve($abstract, $parameters = [], $raiseEvents = true)
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::resolve($abstract, $parameters, $raiseEvents);
}
/**
* Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
*
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function make($abstract, array $parameters = [])
{
return $this->resolve($abstract, $parameters);
}
/**
* {@inheritdoc}
*
*/
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
{
if (is_null($abstract)) {
return Container::getInstance();
}
return Container::getInstance()->make($abstract, $parameters);
}
}
if (! function_exists('app_path')) {
/**
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
[2/2]
BindingResolutionException
|
---|
Illuminate\Contracts\Container\BindingResolutionException: Target class [sage.view] does not exist. at /var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/illuminate/container/Container.php:891 at Illuminate\Container\Container->build() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/illuminate/container/Container.php:770) at Illuminate\Container\Container->resolve() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:856) at Illuminate\Foundation\Application->resolve() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/illuminate/container/Container.php:706) at Illuminate\Container\Container->make() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:841) at Illuminate\Foundation\Application->make() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/roots/acorn/src/Illuminate/Foundation/helpers.php:120) at app() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/index.php:1) at include('/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/index.php') (/var/www/www.dolcevita.cz/web/wp-includes/template-loader.php:106) at require_once('/var/www/www.dolcevita.cz/web/wp-includes/template-loader.php') (/var/www/www.dolcevita.cz/web/wp-blog-header.php:19) at require('/var/www/www.dolcevita.cz/web/wp-blog-header.php') (/var/www/www.dolcevita.cz/web/index.php:17) |
[1/2]
ReflectionException
|
---|
ReflectionException: Class "sage.view" does not exist at /var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/illuminate/container/Container.php:889 at ReflectionClass->__construct() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/illuminate/container/Container.php:889) at Illuminate\Container\Container->build() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/illuminate/container/Container.php:770) at Illuminate\Container\Container->resolve() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:856) at Illuminate\Foundation\Application->resolve() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/illuminate/container/Container.php:706) at Illuminate\Container\Container->make() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:841) at Illuminate\Foundation\Application->make() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/vendor/roots/acorn/src/Illuminate/Foundation/helpers.php:120) at app() (/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/index.php:1) at include('/var/www/www.dolcevita.cz/web/wp-content/themes/beaucoup/index.php') (/var/www/www.dolcevita.cz/web/wp-includes/template-loader.php:106) at require_once('/var/www/www.dolcevita.cz/web/wp-includes/template-loader.php') (/var/www/www.dolcevita.cz/web/wp-blog-header.php:19) at require('/var/www/www.dolcevita.cz/web/wp-blog-header.php') (/var/www/www.dolcevita.cz/web/index.php:17) |