} 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')) { /** * @return Asset */function asset(string $asset, ?string $manifest = null): Asset{ if (! $manifest) { return \app('assets.manifest')->asset($asset); } return \app('assets')->manifest($manifest)->asset($asset);} * Register the theme assets. * * @return void */add_action('wp_enqueue_scripts', function () { wp_enqueue_script('sage/vendor.js', asset('scripts/vendor.js')->uri(), ['jquery'], null, true); wp_enqueue_script('sage/app.js', asset('scripts/app.js')->uri(), ['sage/vendor.js'], null, true); wp_add_inline_script('sage/vendor.js', asset('scripts/manifest.js')->contents(), 'before'); if (is_single() && comments_open()) { // Avoid the array_slice() if possible. if ( 0 === $the_['accepted_args'] ) { $value = call_user_func( $the_['function'] ); } elseif ( $the_['accepted_args'] >= $num_args ) { $value = call_user_func_array( $the_['function'], $args ); } else { $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) ); } } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); * * @param array $args Parameters to pass to the callback functions. */ public function do_action( $args ) { $this->doing_action = true; $this->apply_filters( '', $args ); // If there are recursive calls to the current action, we haven't finished it until we get to the last one. if ( ! $this->nesting_level ) { $this->doing_action = false; } } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) { // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`. $arg[0] = $arg[0][0]; } $wp_filter[ $hook_name ]->do_action( $arg ); array_pop( $wp_current_filter );}/** /** * Fires when scripts and styles are enqueued. * * @since 2.8.0 */ do_action( 'wp_enqueue_scripts' );}/** * Prints the styles queue in the HTML head on admin pages. * // Avoid the array_slice() if possible. if ( 0 === $the_['accepted_args'] ) { $value = call_user_func( $the_['function'] ); } elseif ( $the_['accepted_args'] >= $num_args ) { $value = call_user_func_array( $the_['function'], $args ); } else { $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) ); } } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); * * @param array $args Parameters to pass to the callback functions. */ public function do_action( $args ) { $this->doing_action = true; $this->apply_filters( '', $args ); // If there are recursive calls to the current action, we haven't finished it until we get to the last one. if ( ! $this->nesting_level ) { $this->doing_action = false; } } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) { // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`. $arg[0] = $arg[0][0]; } $wp_filter[ $hook_name ]->do_action( $arg ); array_pop( $wp_current_filter );}/** /** * Prints scripts or data in the head tag on the front end. * * @since 1.5.0 */ do_action( 'wp_head' );}/** * Fires the wp_footer action. *<html <?php language_attributes(); ?>> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php wp_body_open(); ?> <?php do_action('get_header'); ?> * * @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')) { /** * @return Asset */function asset(string $asset, ?string $manifest = null): Asset{ if (! $manifest) { return \app('assets.manifest')->asset($asset); } return \app('assets')->manifest($manifest)->asset($asset);} * Register the theme assets. * * @return void */add_action('wp_enqueue_scripts', function () { wp_enqueue_script('sage/vendor.js', asset('scripts/vendor.js')->uri(), ['jquery'], null, true); wp_enqueue_script('sage/app.js', asset('scripts/app.js')->uri(), ['sage/vendor.js'], null, true); wp_add_inline_script('sage/vendor.js', asset('scripts/manifest.js')->contents(), 'before'); if (is_single() && comments_open()) { // Avoid the array_slice() if possible. if ( 0 === $the_['accepted_args'] ) { $value = call_user_func( $the_['function'] ); } elseif ( $the_['accepted_args'] >= $num_args ) { $value = call_user_func_array( $the_['function'], $args ); } else { $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) ); } } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); * * @param array $args Parameters to pass to the callback functions. */ public function do_action( $args ) { $this->doing_action = true; $this->apply_filters( '', $args ); // If there are recursive calls to the current action, we haven't finished it until we get to the last one. if ( ! $this->nesting_level ) { $this->doing_action = false; } } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) { // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`. $arg[0] = $arg[0][0]; } $wp_filter[ $hook_name ]->do_action( $arg ); array_pop( $wp_current_filter );}/** /** * Fires when scripts and styles are enqueued. * * @since 2.8.0 */ do_action( 'wp_enqueue_scripts' );}/** * Prints the styles queue in the HTML head on admin pages. * // Avoid the array_slice() if possible. if ( 0 === $the_['accepted_args'] ) { $value = call_user_func( $the_['function'] ); } elseif ( $the_['accepted_args'] >= $num_args ) { $value = call_user_func_array( $the_['function'], $args ); } else { $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) ); } } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); * * @param array $args Parameters to pass to the callback functions. */ public function do_action( $args ) { $this->doing_action = true; $this->apply_filters( '', $args ); // If there are recursive calls to the current action, we haven't finished it until we get to the last one. if ( ! $this->nesting_level ) { $this->doing_action = false; } } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) { // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`. $arg[0] = $arg[0][0]; } $wp_filter[ $hook_name ]->do_action( $arg ); array_pop( $wp_current_filter );}/** /** * Prints scripts or data in the head tag on the front end. * * @since 1.5.0 */ do_action( 'wp_head' );}/** * Fires the wp_footer action. *<html <?php language_attributes(); ?>> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php wp_body_open(); ?> <?php do_action('get_header'); ?> * * @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 [assets.manifest] does not exist.
at /var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:891
at Illuminate\Container\Container->build('assets.manifest')
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:770)
at Illuminate\Container\Container->resolve('assets.manifest', array(), true)
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:856)
at Illuminate\Foundation\Application->resolve('assets.manifest', array())
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:706)
at Illuminate\Container\Container->make('assets.manifest', array())
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:841)
at Illuminate\Foundation\Application->make('assets.manifest', array())
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/helpers.php:120)
at app('assets.manifest')
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Roots/helpers.php:21)
at Roots\asset('scripts/vendor.js')
(/var/www/html/wp-content/themes/deploy/app/setup.php:17)
at App\{closure}('')
(/var/www/html/wp-includes/class-wp-hook.php:341)
at WP_Hook->apply_filters(null, array(''))
(/var/www/html/wp-includes/class-wp-hook.php:365)
at WP_Hook->do_action(array(''))
(/var/www/html/wp-includes/plugin.php:522)
at do_action('wp_enqueue_scripts')
(/var/www/html/wp-includes/script-loader.php:2311)
at wp_enqueue_scripts('')
(/var/www/html/wp-includes/class-wp-hook.php:341)
at WP_Hook->apply_filters(null, array(''))
(/var/www/html/wp-includes/class-wp-hook.php:365)
at WP_Hook->do_action(array(''))
(/var/www/html/wp-includes/plugin.php:522)
at do_action('wp_head')
(/var/www/html/wp-includes/general-template.php:3197)
at wp_head()
(/var/www/html/wp-content/themes/deploy/index.php:7)
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 "assets.manifest" does not exist
at /var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:889
at ReflectionClass->__construct('assets.manifest')
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:889)
at Illuminate\Container\Container->build('assets.manifest')
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:770)
at Illuminate\Container\Container->resolve('assets.manifest', array(), true)
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:856)
at Illuminate\Foundation\Application->resolve('assets.manifest', array())
(/var/www/html/wp-content/themes/deploy/vendor/illuminate/container/Container.php:706)
at Illuminate\Container\Container->make('assets.manifest', array())
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:841)
at Illuminate\Foundation\Application->make('assets.manifest', array())
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Illuminate/Foundation/helpers.php:120)
at app('assets.manifest')
(/var/www/html/wp-content/themes/deploy/vendor/roots/acorn/src/Roots/helpers.php:21)
at Roots\asset('scripts/vendor.js')
(/var/www/html/wp-content/themes/deploy/app/setup.php:17)
at App\{closure}('')
(/var/www/html/wp-includes/class-wp-hook.php:341)
at WP_Hook->apply_filters(null, array(''))
(/var/www/html/wp-includes/class-wp-hook.php:365)
at WP_Hook->do_action(array(''))
(/var/www/html/wp-includes/plugin.php:522)
at do_action('wp_enqueue_scripts')
(/var/www/html/wp-includes/script-loader.php:2311)
at wp_enqueue_scripts('')
(/var/www/html/wp-includes/class-wp-hook.php:341)
at WP_Hook->apply_filters(null, array(''))
(/var/www/html/wp-includes/class-wp-hook.php:365)
at WP_Hook->do_action(array(''))
(/var/www/html/wp-includes/plugin.php:522)
at do_action('wp_head')
(/var/www/html/wp-includes/general-template.php:3197)
at wp_head()
(/var/www/html/wp-content/themes/deploy/index.php:7)
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)
|