use ReflectionObject;
/**
* Provides a wrapper for serialization of closures
*/
class SerializableClosure implements Serializable
{
/**
* @var Closure Wrapped closure
*
* @see \Opis\Closure\SerializableClosure::getClosure()
use ReflectionObject;
/**
* Provides a wrapper for serialization of closures
*/
class SerializableClosure implements Serializable
{
/**
* @var Closure Wrapped closure
*
* @see \Opis\Closure\SerializableClosure::getClosure()
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
* @return bool|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
}
}
*/
protected function registerOpisSecurityKey()
{
$config = $this->app->make('config')->get('app');
if (! class_exists(SerializableClosure::class) || empty($config['key'])) {
return;
}
SerializableClosure::setSecretKey($this->parseKey($config));
}
* @return void
*/
public function register()
{
$this->registerEncrypter();
$this->registerOpisSecurityKey();
}
/**
* Register the encrypter.
*
// a more convenient way of specifying your service provider classes.
if (is_string($provider)) {
$provider = $this->resolveProvider($provider);
}
$provider->register();
// If there are bindings / singletons set as properties on the provider we
// will spin through them and register them with the application, which
// serves as a convenience layer while registering a lot of bindings.
if (property_exists($provider, 'bindings')) {
// We will go ahead and register all of the eagerly loaded providers with the
// application so their services can be registered with the application as
// a provided service. Then we will set the deferred service list on it.
foreach ($manifest['eager'] as $provider) {
$this->app->register($provider);
}
$this->app->addDeferredServices($manifest['deferred']);
}
});
$providers->splice(1, 0, [$this->make(PackageManifest::class)->providers()]);
(new ProviderRepository($this, new Filesystem, $this->getCachedServicesPath()))
->load($providers->collapse()->toArray());
}
/**
* Register a service provider with the application.
*
* @param \Illuminate\Contracts\Foundation\Application $app
* @return void
*/
public function bootstrap(Application $app)
{
$app->registerConfiguredProviders();
}
}
$this->hasBeenBootstrapped = true;
foreach ($bootstrappers as $bootstrapper) {
$this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
$this->make($bootstrapper)->bootstrap($this);
$this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
}
}
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
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/hellocine/public_html/vendor/opis/closure/src/SerializableClosure.php:18 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, '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)', '/home/hellocine/public_html/vendor/opis/closure/src/SerializableClosure.php', 18) (/home/hellocine/public_html/vendor/opis/closure/src/SerializableClosure.php:18) at include('/home/hellocine/public_html/vendor/opis/closure/src/SerializableClosure.php') (/home/hellocine/public_html/vendor/composer/ClassLoader.php:478) at Composer\Autoload\includeFile('/home/hellocine/public_html/vendor/composer/../opis/closure/src/SerializableClosure.php') (/home/hellocine/public_html/vendor/composer/ClassLoader.php:346) at Composer\Autoload\ClassLoader->loadClass('Opis\\Closure\\SerializableClosure') at class_exists('Opis\\Closure\\SerializableClosure') (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:45) at Illuminate\Encryption\EncryptionServiceProvider->registerOpisSecurityKey() (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:19) at Illuminate\Encryption\EncryptionServiceProvider->register() (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:672) at Illuminate\Foundation\Application->register(object(EncryptionServiceProvider)) (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:75) at Illuminate\Foundation\ProviderRepository->load(array('Illuminate\\Auth\\AuthServiceProvider', 'Illuminate\\Broadcasting\\BroadcastServiceProvider', 'Illuminate\\Bus\\BusServiceProvider', 'Illuminate\\Cache\\CacheServiceProvider', 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider', 'Illuminate\\Cookie\\CookieServiceProvider', 'Illuminate\\Database\\DatabaseServiceProvider', 'Illuminate\\Encryption\\EncryptionServiceProvider', 'Illuminate\\Filesystem\\FilesystemServiceProvider', 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider', 'Illuminate\\Hashing\\HashServiceProvider', 'Illuminate\\Mail\\MailServiceProvider', 'Illuminate\\Notifications\\NotificationServiceProvider', 'Illuminate\\Pagination\\PaginationServiceProvider', 'Illuminate\\Pipeline\\PipelineServiceProvider', 'Illuminate\\Queue\\QueueServiceProvider', 'Illuminate\\Redis\\RedisServiceProvider', 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider', 'Illuminate\\Session\\SessionServiceProvider', 'Illuminate\\Translation\\TranslationServiceProvider', 'Illuminate\\Validation\\ValidationServiceProvider', 'Illuminate\\View\\ViewServiceProvider', 'Fideloper\\Proxy\\TrustedProxyServiceProvider', 'Fruitcake\\Cors\\CorsServiceProvider', 'Intervention\\Image\\ImageServiceProvider', 'Jenssegers\\Agent\\AgentServiceProvider', 'Laravel\\Horizon\\HorizonServiceProvider', 'Laravel\\Sanctum\\SanctumServiceProvider', 'Laravel\\Scout\\ScoutServiceProvider', 'Illuminate\\Notifications\\SlackChannelServiceProvider', 'Laravel\\Socialite\\SocialiteServiceProvider', 'Laravel\\Tinker\\TinkerServiceProvider', 'Laravel\\Ui\\UiServiceProvider', 'Matchish\\ScoutElasticSearch\\ScoutElasticSearchServiceProvider', 'Carbon\\Laravel\\ServiceProvider', 'Sentry\\Laravel\\ServiceProvider', 'Sentry\\Laravel\\Tracing\\ServiceProvider', 'Spatie\\Analytics\\AnalyticsServiceProvider', 'TeamTNT\\Scout\\TNTSearchScoutServiceProvider', 'Torann\\GeoIP\\GeoIPServiceProvider', 'Common\\CommonServiceProvider', 'App\\Providers\\AppServiceProvider', 'App\\Providers\\AuthServiceProvider', 'App\\Providers\\EventServiceProvider', 'App\\Providers\\RouteServiceProvider')) (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:649) at Illuminate\Foundation\Application->registerConfiguredProviders() (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17) at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(object(Application)) (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237) at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders')) (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:152) at Illuminate\Foundation\Http\Kernel->bootstrap() (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:136) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/home/hellocine/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/home/hellocine/public_html/public/index.php:62) |