Symfony Exception

ReflectionException BindingResolutionException

HTTP 500 Internal Server Error

Target class [assets.manifest] does not exist.

Exceptions 2

Illuminate\Contracts\Container\ BindingResolutionException

  1.         }
  2.         try {
  3.             $reflector = new ReflectionClass($concrete);
  4.         } catch (ReflectionException $e) {
  5.             throw new BindingResolutionException("Target class [$concrete] does not exist."0$e);
  6.         }
  7.         // If the type is not instantiable, the developer is attempting to resolve
  8.         // an abstract type such as an Interface or Abstract Class and there is
  9.         // no binding registered for the abstractions so we need to bail out.
  1.         // We're ready to instantiate an instance of the concrete type registered for
  2.         // the binding. This will instantiate the types, as well as resolve any of
  3.         // its "nested" dependencies recursively until all have gotten resolved.
  4.         if ($this->isBuildable($concrete$abstract)) {
  5.             $object $this->build($concrete);
  6.         } else {
  7.             $object $this->make($concrete);
  8.         }
  9.         // If we defined any extenders for this type, we'll need to spin through them
  1.      */
  2.     protected function resolve($abstract$parameters = [], $raiseEvents true)
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::resolve($abstract$parameters$raiseEvents);
  6.     }
  7.     /**
  8.      * Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
  9.      *
  1.      *
  2.      * @throws \Illuminate\Contracts\Container\BindingResolutionException
  3.      */
  4.     public function make($abstract, array $parameters = [])
  5.     {
  6.         return $this->resolve($abstract$parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.      */
  2.     public function make($abstract, array $parameters = [])
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::make($abstract$parameters);
  6.     }
  7.     /**
  8.      * Resolve the given type from the container.
  9.      *
  1.     {
  2.         if (is_null($abstract)) {
  3.             return Container::getInstance();
  4.         }
  5.         return Container::getInstance()->make($abstract$parameters);
  6.     }
  7. }
  8. if (! function_exists('app_path')) {
  9.     /**
  1.  * @return Asset
  2.  */
  3. function asset(string $asset, ?string $manifest null): Asset
  4. {
  5.     if (! $manifest) {
  6.         return \app('assets.manifest')->asset($asset);
  7.     }
  8.     return \app('assets')->manifest($manifest)->asset($asset);
  9. }
Roots\asset('scripts/vendor.js') in /var/www/html/wp-content/themes/deploy/app/setup.php (line 17)
  1.  * Register the theme assets.
  2.  *
  3.  * @return void
  4.  */
  5. add_action('wp_enqueue_scripts', function () {
  6.     wp_enqueue_script('sage/vendor.js'asset('scripts/vendor.js')->uri(), ['jquery'], nulltrue);
  7.     wp_enqueue_script('sage/app.js'asset('scripts/app.js')->uri(), ['sage/vendor.js'], nulltrue);
  8.     wp_add_inline_script('sage/vendor.js'asset('scripts/manifest.js')->contents(), 'before');
  9.     if (is_single() && comments_open()) {
App\{closure}('') in /var/www/html/wp-includes/class-wp-hook.php (line 341)
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( === $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0$the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
WP_Hook->apply_filters(null, array('')) in /var/www/html/wp-includes/class-wp-hook.php (line 365)
  1.      *
  2.      * @param array $args Parameters to pass to the callback functions.
  3.      */
  4.     public function do_action$args ) {
  5.         $this->doing_action true;
  6.         $this->apply_filters''$args );
  7.         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8.         if ( ! $this->nesting_level ) {
  9.             $this->doing_action false;
  10.         }
WP_Hook->do_action(array('')) in /var/www/html/wp-includes/plugin.php (line 522)
  1.     } elseif ( is_array$arg[0] ) && === count$arg[0] ) && isset( $arg[0][0] ) && is_object$arg[0][0] ) ) {
  2.         // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3.         $arg[0] = $arg[0][0];
  4.     }
  5.     $wp_filter$hook_name ]->do_action$arg );
  6.     array_pop$wp_current_filter );
  7. }
  8. /**
do_action('wp_enqueue_scripts') in /var/www/html/wp-includes/script-loader.php (line 2311)
  1.     /**
  2.      * Fires when scripts and styles are enqueued.
  3.      *
  4.      * @since 2.8.0
  5.      */
  6.     do_action'wp_enqueue_scripts' );
  7. }
  8. /**
  9.  * Prints the styles queue in the HTML head on admin pages.
  10.  *
wp_enqueue_scripts('') in /var/www/html/wp-includes/class-wp-hook.php (line 341)
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( === $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0$the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
WP_Hook->apply_filters(null, array('')) in /var/www/html/wp-includes/class-wp-hook.php (line 365)
  1.      *
  2.      * @param array $args Parameters to pass to the callback functions.
  3.      */
  4.     public function do_action$args ) {
  5.         $this->doing_action true;
  6.         $this->apply_filters''$args );
  7.         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8.         if ( ! $this->nesting_level ) {
  9.             $this->doing_action false;
  10.         }
WP_Hook->do_action(array('')) in /var/www/html/wp-includes/plugin.php (line 522)
  1.     } elseif ( is_array$arg[0] ) && === count$arg[0] ) && isset( $arg[0][0] ) && is_object$arg[0][0] ) ) {
  2.         // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3.         $arg[0] = $arg[0][0];
  4.     }
  5.     $wp_filter$hook_name ]->do_action$arg );
  6.     array_pop$wp_current_filter );
  7. }
  8. /**
do_action('wp_head') in /var/www/html/wp-includes/general-template.php (line 3197)
  1.     /**
  2.      * Prints scripts or data in the head tag on the front end.
  3.      *
  4.      * @since 1.5.0
  5.      */
  6.     do_action'wp_head' );
  7. }
  8. /**
  9.  * Fires the wp_footer action.
  10.  *
  1. <html <?php language_attributes(); ?>>
  2.   <head>
  3.     <meta charset="utf-8">
  4.     <meta http-equiv="x-ua-compatible" content="ie=edge">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.     <?php wp_head(); ?>
  7.   </head>
  8.   <body <?php body_class(); ?>>
  9.     <?php wp_body_open(); ?>
  10.     <?php do_action('get_header'); ?>
include('/var/www/html/wp-content/themes/deploy/index.php') in /var/www/html/wp-includes/template-loader.php (line 132)
  1.          *
  2.          * @param string $template The path of the template about to be included.
  3.          */
  4.         do_action'wp_before_include_template'$template );
  5.         include $template;
  6.     } elseif ( current_user_can'switch_themes' ) ) {
  7.         $theme wp_get_theme();
  8.         if ( $theme->errors() ) {
  9.             wp_die$theme->errors() );
  10.         }
require_once('/var/www/html/wp-includes/template-loader.php') in /var/www/html/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/var/www/html/wp-blog-header.php') in /var/www/html/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

ReflectionException

Class "assets.manifest" does not exist

  1.         if ($concrete instanceof Closure) {
  2.             return $concrete($this$this->getLastParameterOverride());
  3.         }
  4.         try {
  5.             $reflector = new ReflectionClass($concrete);
  6.         } catch (ReflectionException $e) {
  7.             throw new BindingResolutionException("Target class [$concrete] does not exist."0$e);
  8.         }
  9.         // If the type is not instantiable, the developer is attempting to resolve
  1.         if ($concrete instanceof Closure) {
  2.             return $concrete($this$this->getLastParameterOverride());
  3.         }
  4.         try {
  5.             $reflector = new ReflectionClass($concrete);
  6.         } catch (ReflectionException $e) {
  7.             throw new BindingResolutionException("Target class [$concrete] does not exist."0$e);
  8.         }
  9.         // If the type is not instantiable, the developer is attempting to resolve
  1.         // We're ready to instantiate an instance of the concrete type registered for
  2.         // the binding. This will instantiate the types, as well as resolve any of
  3.         // its "nested" dependencies recursively until all have gotten resolved.
  4.         if ($this->isBuildable($concrete$abstract)) {
  5.             $object $this->build($concrete);
  6.         } else {
  7.             $object $this->make($concrete);
  8.         }
  9.         // If we defined any extenders for this type, we'll need to spin through them
  1.      */
  2.     protected function resolve($abstract$parameters = [], $raiseEvents true)
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::resolve($abstract$parameters$raiseEvents);
  6.     }
  7.     /**
  8.      * Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
  9.      *
  1.      *
  2.      * @throws \Illuminate\Contracts\Container\BindingResolutionException
  3.      */
  4.     public function make($abstract, array $parameters = [])
  5.     {
  6.         return $this->resolve($abstract$parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.      */
  2.     public function make($abstract, array $parameters = [])
  3.     {
  4.         $this->loadDeferredProviderIfNeeded($abstract $this->getAlias($abstract));
  5.         return parent::make($abstract$parameters);
  6.     }
  7.     /**
  8.      * Resolve the given type from the container.
  9.      *
  1.     {
  2.         if (is_null($abstract)) {
  3.             return Container::getInstance();
  4.         }
  5.         return Container::getInstance()->make($abstract$parameters);
  6.     }
  7. }
  8. if (! function_exists('app_path')) {
  9.     /**
  1.  * @return Asset
  2.  */
  3. function asset(string $asset, ?string $manifest null): Asset
  4. {
  5.     if (! $manifest) {
  6.         return \app('assets.manifest')->asset($asset);
  7.     }
  8.     return \app('assets')->manifest($manifest)->asset($asset);
  9. }
Roots\asset('scripts/vendor.js') in /var/www/html/wp-content/themes/deploy/app/setup.php (line 17)
  1.  * Register the theme assets.
  2.  *
  3.  * @return void
  4.  */
  5. add_action('wp_enqueue_scripts', function () {
  6.     wp_enqueue_script('sage/vendor.js'asset('scripts/vendor.js')->uri(), ['jquery'], nulltrue);
  7.     wp_enqueue_script('sage/app.js'asset('scripts/app.js')->uri(), ['sage/vendor.js'], nulltrue);
  8.     wp_add_inline_script('sage/vendor.js'asset('scripts/manifest.js')->contents(), 'before');
  9.     if (is_single() && comments_open()) {
App\{closure}('') in /var/www/html/wp-includes/class-wp-hook.php (line 341)
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( === $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0$the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
WP_Hook->apply_filters(null, array('')) in /var/www/html/wp-includes/class-wp-hook.php (line 365)
  1.      *
  2.      * @param array $args Parameters to pass to the callback functions.
  3.      */
  4.     public function do_action$args ) {
  5.         $this->doing_action true;
  6.         $this->apply_filters''$args );
  7.         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8.         if ( ! $this->nesting_level ) {
  9.             $this->doing_action false;
  10.         }
WP_Hook->do_action(array('')) in /var/www/html/wp-includes/plugin.php (line 522)
  1.     } elseif ( is_array$arg[0] ) && === count$arg[0] ) && isset( $arg[0][0] ) && is_object$arg[0][0] ) ) {
  2.         // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3.         $arg[0] = $arg[0][0];
  4.     }
  5.     $wp_filter$hook_name ]->do_action$arg );
  6.     array_pop$wp_current_filter );
  7. }
  8. /**
do_action('wp_enqueue_scripts') in /var/www/html/wp-includes/script-loader.php (line 2311)
  1.     /**
  2.      * Fires when scripts and styles are enqueued.
  3.      *
  4.      * @since 2.8.0
  5.      */
  6.     do_action'wp_enqueue_scripts' );
  7. }
  8. /**
  9.  * Prints the styles queue in the HTML head on admin pages.
  10.  *
wp_enqueue_scripts('') in /var/www/html/wp-includes/class-wp-hook.php (line 341)
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( === $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0$the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
WP_Hook->apply_filters(null, array('')) in /var/www/html/wp-includes/class-wp-hook.php (line 365)
  1.      *
  2.      * @param array $args Parameters to pass to the callback functions.
  3.      */
  4.     public function do_action$args ) {
  5.         $this->doing_action true;
  6.         $this->apply_filters''$args );
  7.         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8.         if ( ! $this->nesting_level ) {
  9.             $this->doing_action false;
  10.         }
WP_Hook->do_action(array('')) in /var/www/html/wp-includes/plugin.php (line 522)
  1.     } elseif ( is_array$arg[0] ) && === count$arg[0] ) && isset( $arg[0][0] ) && is_object$arg[0][0] ) ) {
  2.         // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3.         $arg[0] = $arg[0][0];
  4.     }
  5.     $wp_filter$hook_name ]->do_action$arg );
  6.     array_pop$wp_current_filter );
  7. }
  8. /**
do_action('wp_head') in /var/www/html/wp-includes/general-template.php (line 3197)
  1.     /**
  2.      * Prints scripts or data in the head tag on the front end.
  3.      *
  4.      * @since 1.5.0
  5.      */
  6.     do_action'wp_head' );
  7. }
  8. /**
  9.  * Fires the wp_footer action.
  10.  *
  1. <html <?php language_attributes(); ?>>
  2.   <head>
  3.     <meta charset="utf-8">
  4.     <meta http-equiv="x-ua-compatible" content="ie=edge">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.     <?php wp_head(); ?>
  7.   </head>
  8.   <body <?php body_class(); ?>>
  9.     <?php wp_body_open(); ?>
  10.     <?php do_action('get_header'); ?>
include('/var/www/html/wp-content/themes/deploy/index.php') in /var/www/html/wp-includes/template-loader.php (line 132)
  1.          *
  2.          * @param string $template The path of the template about to be included.
  3.          */
  4.         do_action'wp_before_include_template'$template );
  5.         include $template;
  6.     } elseif ( current_user_can'switch_themes' ) ) {
  7.         $theme wp_get_theme();
  8.         if ( $theme->errors() ) {
  9.             wp_die$theme->errors() );
  10.         }
require_once('/var/www/html/wp-includes/template-loader.php') in /var/www/html/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/var/www/html/wp-blog-header.php') in /var/www/html/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

Stack Traces 2

[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)