Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Opis\Closure\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)

Exception

ErrorException

  1. use ReflectionObject;
  2. /**
  3.  * Provides a wrapper for serialization of closures
  4.  */
  5. class SerializableClosure implements Serializable
  6. {
  7.     /**
  8.      * @var Closure Wrapped closure
  9.      *
  10.      * @see \Opis\Closure\SerializableClosure::getClosure()
  1. use ReflectionObject;
  2. /**
  3.  * Provides a wrapper for serialization of closures
  4.  */
  5. class SerializableClosure implements Serializable
  6. {
  7.     /**
  8.      * @var Closure Wrapped closure
  9.      *
  10.      * @see \Opis\Closure\SerializableClosure::getClosure()
  1.  *
  2.  * Prevents access to $this/self from included files.
  3.  */
  4. function includeFile($file)
  5. {
  6.     include $file;
  7. }
  1.      * @return true|null True if loaded, null otherwise
  2.      */
  3.     public function loadClass($class)
  4.     {
  5.         if ($file $this->findFile($class)) {
  6.             includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
ClassLoader->loadClass()
  1.      */
  2.     protected function registerOpisSecurityKey()
  3.     {
  4.         $config $this->app->make('config')->get('app');
  5.         if (! class_exists(SerializableClosure::class) || empty($config['key'])) {
  6.             return;
  7.         }
  8.         SerializableClosure::setSecretKey($this->parseKey($config));
  9.     }
  1.      * @return void
  2.      */
  3.     public function register()
  4.     {
  5.         $this->registerEncrypter();
  6.         $this->registerOpisSecurityKey();
  7.     }
  8.     /**
  9.      * Register the encrypter.
  10.      *
  1.         // a more convenient way of specifying your service provider classes.
  2.         if (is_string($provider)) {
  3.             $provider $this->resolveProvider($provider);
  4.         }
  5.         $provider->register();
  6.         // If there are bindings / singletons set as properties on the provider we
  7.         // will spin through them and register them with the application, which
  8.         // serves as a convenience layer while registering a lot of bindings.
  9.         if (property_exists($provider'bindings')) {
  1.         // We will go ahead and register all of the eagerly loaded providers with the
  2.         // application so their services can be registered with the application as
  3.         // a provided service. Then we will set the deferred service list on it.
  4.         foreach ($manifest['eager'] as $provider) {
  5.             $this->app->register($provider);
  6.         }
  7.         $this->app->addDeferredServices($manifest['deferred']);
  8.     }
  1.                         });
  2.         $providers->splice(10, [$this->make(PackageManifest::class)->providers()]);
  3.         (new ProviderRepository($this, new Filesystem$this->getCachedServicesPath()))
  4.                     ->load($providers->collapse()->toArray());
  5.     }
  6.     /**
  7.      * Register a service provider with the application.
  8.      *
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->registerConfiguredProviders();
  7.     }
  8. }
  1.         $this->hasBeenBootstrapped true;
  2.         foreach ($bootstrappers as $bootstrapper) {
  3.             $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
  4.             $this->make($bootstrapper)->bootstrap($this);
  5.             $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
  6.         }
  7.     }
  1.      * @return void
  2.      */
  3.     public function bootstrap()
  4.     {
  5.         if (! $this->app->hasBeenBootstrapped()) {
  6.             $this->app->bootstrapWith($this->bootstrappers());
  7.         }
  8.     }
  9.     /**
  10.      * Get the route dispatcher callback.
  1.     {
  2.         $this->app->instance('request'$request);
  3.         Facade::clearResolvedInstance('request');
  4.         $this->bootstrap();
  5.         return (new Pipeline($this->app))
  6.                     ->send($request)
  7.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  8.                     ->then($this->dispatchToRouter());
  1.     public function handle($request)
  2.     {
  3.         try {
  4.             $request->enableHttpMethodParameterOverride();
  5.             $response $this->sendRequestThroughRouter($request);
  6.         } catch (Throwable $e) {
  7.             $this->reportException($e);
  8.             $response $this->renderException($request$e);
  9.         }
  1. $app = require_once __DIR__.'/../bootstrap/app.php';
  2. $kernel $app->make(Kernel::class);
  3. $response tap($kernel->handle(
  4.     $request Request::capture()
  5. ))->send();
  6. $kernel->terminate($request$response);

Stack Trace

ErrorException
ErrorException:
Opis\Closure\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)

  at /home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/opis/closure/src/SerializableClosure.php:18
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/opis/closure/src/SerializableClosure.php:18)
  at include('/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/opis/closure/src/SerializableClosure.php')
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/composer/ClassLoader.php:480)
  at Composer\Autoload\includeFile()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/composer/ClassLoader.php:346)
  at Composer\Autoload\ClassLoader->loadClass()
  at class_exists()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:45)
  at Illuminate\Encryption\EncryptionServiceProvider->registerOpisSecurityKey()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:19)
  at Illuminate\Encryption\EncryptionServiceProvider->register()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:672)
  at Illuminate\Foundation\Application->register()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75)
  at Illuminate\Foundation\ProviderRepository->load()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:649)
  at Illuminate\Foundation\Application->registerConfiguredProviders()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17)
  at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:152)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:136)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/home/i0fbf85dby7s/public_html/evernetsuperior.com/public/index.php:52)