}
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')) {
/**
<body <?php body_class('prose max-w-none font-body antialiased bg-gray'); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
*
* @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')) {
/**
<body <?php body_class('prose max-w-none font-body antialiased bg-gray'); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
*
* @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 /data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/illuminate/container/Container.php:891 at Illuminate\Container\Container->build('sage.view') (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/illuminate/container/Container.php:770) at Illuminate\Container\Container->resolve('sage.view', array(), true) (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:856) at Illuminate\Foundation\Application->resolve('sage.view', array()) (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/illuminate/container/Container.php:706) at Illuminate\Container\Container->make('sage.view', array()) (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:841) at Illuminate\Foundation\Application->make('sage.view', array()) (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/roots/acorn/src/Illuminate/Foundation/helpers.php:120) at app('sage.view') (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/index.php:15) at include('/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/index.php') (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-includes/template-loader.php:106) at require_once('/data/web/virtuals/286063/virtual/www/subdom/dev/wp-includes/template-loader.php') (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-blog-header.php:19) at require('/data/web/virtuals/286063/virtual/www/subdom/dev/wp-blog-header.php') (/data/web/virtuals/286063/virtual/www/subdom/dev/index.php:17) |
[1/2]
ReflectionException
|
---|
ReflectionException: Class "sage.view" does not exist at /data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/illuminate/container/Container.php:889 at ReflectionClass->__construct('sage.view') (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/illuminate/container/Container.php:889) at Illuminate\Container\Container->build('sage.view') (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/illuminate/container/Container.php:770) at Illuminate\Container\Container->resolve('sage.view', array(), true) (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:856) at Illuminate\Foundation\Application->resolve('sage.view', array()) (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/illuminate/container/Container.php:706) at Illuminate\Container\Container->make('sage.view', array()) (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:841) at Illuminate\Foundation\Application->make('sage.view', array()) (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/vendor/roots/acorn/src/Illuminate/Foundation/helpers.php:120) at app('sage.view') (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/index.php:15) at include('/data/web/virtuals/286063/virtual/www/subdom/dev/wp-content/themes/tgaMedical/index.php') (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-includes/template-loader.php:106) at require_once('/data/web/virtuals/286063/virtual/www/subdom/dev/wp-includes/template-loader.php') (/data/web/virtuals/286063/virtual/www/subdom/dev/wp-blog-header.php:19) at require('/data/web/virtuals/286063/virtual/www/subdom/dev/wp-blog-header.php') (/data/web/virtuals/286063/virtual/www/subdom/dev/index.php:17) |