} 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')) { /**/** * @deprecated */function app(...$args){ return \app(...$args);}/** * @deprecated */ <body <?php body_class(); ?>> <?php wp_body_open(); ?> <?php do_action('get_header'); ?> <div id="app"> <?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?> </div> <?php do_action('get_footer'); ?> <?php wp_footer(); ?> </body> * * @param string $template The path of the template about to be included. */ do_action( 'wp_before_include_template', $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')) { /**/** * @deprecated */function app(...$args){ return \app(...$args);}/** * @deprecated */ <body <?php body_class(); ?>> <?php wp_body_open(); ?> <?php do_action('get_header'); ?> <div id="app"> <?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?> </div> <?php do_action('get_footer'); ?> <?php wp_footer(); ?> </body> * * @param string $template The path of the template about to be included. */ do_action( 'wp_before_include_template', $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/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:891
at Illuminate\Container\Container->build('sage.view')
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:770)
at Illuminate\Container\Container->resolve('sage.view', array(), true)
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:856)
at Illuminate\Foundation\Application->resolve('sage.view', array())
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:706)
at Illuminate\Container\Container->make('sage.view', array())
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:841)
at Illuminate\Foundation\Application->make('sage.view', array())
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/helpers.php:120)
at app('sage.view')
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Roots/helpers.php:108)
at Roots\app('sage.view')
(/var/www/html/wp-content/themes/deploy/index.php:15)
at include('/var/www/html/wp-content/themes/deploy/index.php')
(/var/www/html/wp-includes/template-loader.php:132)
at require_once('/var/www/html/wp-includes/template-loader.php')
(/var/www/html/wp-blog-header.php:19)
at require('/var/www/html/wp-blog-header.php')
(/var/www/html/index.php:17)
|
|
[1/2]
ReflectionException
|
|---|
ReflectionException:
Class "sage.view" does not exist
at /var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:889
at ReflectionClass->__construct('sage.view')
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:889)
at Illuminate\Container\Container->build('sage.view')
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:770)
at Illuminate\Container\Container->resolve('sage.view', array(), true)
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:856)
at Illuminate\Foundation\Application->resolve('sage.view', array())
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:706)
at Illuminate\Container\Container->make('sage.view', array())
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:841)
at Illuminate\Foundation\Application->make('sage.view', array())
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/helpers.php:120)
at app('sage.view')
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Roots/helpers.php:108)
at Roots\app('sage.view')
(/var/www/html/wp-content/themes/deploy/index.php:15)
at include('/var/www/html/wp-content/themes/deploy/index.php')
(/var/www/html/wp-includes/template-loader.php:132)
at require_once('/var/www/html/wp-includes/template-loader.php')
(/var/www/html/wp-blog-header.php:19)
at require('/var/www/html/wp-blog-header.php')
(/var/www/html/index.php:17)
|