* @param bool $lock * @return int|bool */ public function put($path, $contents, $lock = false) { return file_put_contents($path, $contents, $lock ? LOCK_EX : 0); } /** * Write the contents of a file, replacing it atomically if it already exists. * * @param bool $lock * @return int|bool */ public function put($path, $contents, $lock = false) { return file_put_contents($path, $contents, $lock ? LOCK_EX : 0); } /** * Write the contents of a file, replacing it atomically if it already exists. * public function put($key, $value, $seconds) { $this->ensureCacheDirectoryExists($path = $this->path($key)); $result = $this->files->put( $path, $this->expiration($seconds).serialize($value), true ); if ($result !== false && $result > 0) { $this->ensurePermissionsAreCorrect($path); * @param mixed $value * @return bool */ public function forever($key, $value) { return $this->put($key, $value, 0); } /** * Remove an item from the cache. * * @param mixed $value * @return bool */ public function forever($key, $value) { $result = $this->store->forever($this->itemKey($key), $value); if ($result) { $this->event(new KeyWritten($key, $value)); } * @param array $parameters * @return mixed */ public function __call($method, $parameters) { return $this->store()->$method(...$parameters); }} $providers[] = $content['provider']; } } cache()->forever('plugin_namespaces', $namespaces); cache()->forever('plugin_providers', $providers); } foreach ($namespaces as $key => $namespace) { $loader->setPsr4($namespace, plugin_path($key . '/src')); if (static::isCallableWithAtSign($callback) || $defaultMethod) { return static::callClass($container, $callback, $parameters, $defaultMethod); } return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) { return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters))); }); } /** * Call a string reference to a class using Class@method syntax. * @param mixed $value * @return mixed */ public static function unwrapIfClosure($value) { return $value instanceof Closure ? $value() : $value; } /** * Get the class name of the given parameter's type, if possible. * if ($container->hasMethodBinding($method)) { return $container->callMethodBinding($method, $callback[0]); } return Util::unwrapIfClosure($default); } /** * Normalize the given callback into a Class@method string. * return static::callClass($container, $callback, $parameters, $defaultMethod); } return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) { return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters))); }); } /** * Call a string reference to a class using Class@method syntax. * * * @throws \InvalidArgumentException */ public function call($callback, array $parameters = [], $defaultMethod = null) { return BoundMethod::call($this, $callback, $parameters, $defaultMethod); } /** * Get a closure to resolve the given type from the container. * protected function bootProvider(ServiceProvider $provider) { $provider->callBootingCallbacks(); if (method_exists($provider, 'boot')) { $this->call([$provider, 'boot']); } $provider->callBootedCallbacks(); } // for any listeners that need to do work after this initial booting gets // finished. This is useful when ordering the boot-up processes we run. $this->fireAppCallbacks($this->bootingCallbacks); array_walk($this->serviceProviders, function ($p) { $this->bootProvider($p); }); $this->booted = true; $this->fireAppCallbacks($this->bootedCallbacks); // finished. This is useful when ordering the boot-up processes we run. $this->fireAppCallbacks($this->bootingCallbacks); array_walk($this->serviceProviders, function ($p) { $this->bootProvider($p); }); $this->booted = true; $this->fireAppCallbacks($this->bootedCallbacks); } * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) { $app->boot(); }} $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(Kernel::class);$response = tap($kernel->handle( $request = Request::capture()))->send();$kernel->terminate($request, $response);|
ErrorException
|
|---|
ErrorException:
file_put_contents(/var/www/vhosts/karavinokaravan.com/httpdocs/storage/framework/cache/data/86/1c/861c9a077d92e3a10644104f1985e89edbd072e2): failed to open stream: No such file or directory
at /var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:187
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
at file_put_contents()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:187)
at Illuminate\Filesystem\Filesystem->put()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:77)
at Illuminate\Cache\FileStore->put()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:200)
at Illuminate\Cache\FileStore->forever()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:363)
at Illuminate\Cache\Repository->forever()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:418)
at Illuminate\Cache\CacheManager->__call()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/botble/plugin-management/src/Providers/PluginManagementServiceProvider.php:72)
at Botble\PluginManagement\Providers\PluginManagementServiceProvider->boot()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36)
at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Util.php:40)
at Illuminate\Container\Util::unwrapIfClosure()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93)
at Illuminate\Container\BoundMethod::callBoundMethod()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37)
at Illuminate\Container\BoundMethod::call()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php:653)
at Illuminate\Container\Container->call()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:924)
at Illuminate\Foundation\Application->bootProvider()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:905)
at Illuminate\Foundation\Application->Illuminate\Foundation\{closure}()
at array_walk()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:906)
at Illuminate\Foundation\Application->boot()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17)
at Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237)
at Illuminate\Foundation\Application->bootstrapWith()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:153)
at Illuminate\Foundation\Http\Kernel->bootstrap()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:137)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
(/var/www/vhosts/karavinokaravan.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111)
at Illuminate\Foundation\Http\Kernel->handle()
(/var/www/vhosts/karavinokaravan.com/httpdocs/public/index.php:65)
|