/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Filesystem.php
private function doWrite($path, $contents, Flysystem\Config $config)
{
try {
$result = (bool) $this->getAdapter()->write($path, $contents, $config);
} catch (Exception $e) {
throw $this->handleEx($e, $path);
}
if ($result === false) {
throw new Ex\IOException('Failed to write to file', $path);
}
}
/**
* {@inheritdoc}
*/
public function writeStream($path, $resource, $config = [])
{
$resource = $this->normalizeResource($resource, __METHOD__);
$path = $this->normalizePath($path);
Arguments
-
"Failed to write to file"
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Filesystem.php
$this->doPut($path, $contents, $config);
}
private function doPut($path, $contents, Flysystem\Config $config)
{
if ($this->doHas($path)) {
$this->doUpdate($path, $contents, $config);
} else {
$this->doWrite($path, $contents, $config);
}
}
/**
* {@inheritdoc}
*/
public function putStream($path, $resource, $config = [])
{
$resource = $this->normalizeResource($resource, __METHOD__);
$path = $this->normalizePath($path);
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Filesystem.php
/**
* {@inheritdoc}
*/
public function put($path, $contents, $config = [])
{
$path = $this->normalizePath($path);
$config = $this->prepareConfig($config);
$this->doPut($path, $contents, $config);
}
private function doPut($path, $contents, Flysystem\Config $config)
{
if ($this->doHas($path)) {
$this->doUpdate($path, $contents, $config);
} else {
$this->doWrite($path, $contents, $config);
}
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Handler/File.php
{
$this->filesystem->updateStream($this->path, $resource);
}
/**
* {@inheritdoc}
*/
public function put($content)
{
$this->filesystem->put($this->path, $content);
}
/**
* {@inheritdoc}
*/
public function putStream($resource)
{
$this->filesystem->putStream($this->path, $resource);
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/Handler/FilesystemHandler.php
return null;
}
}
/**
* {@inheritdoc}
*/
public function write($sessionId, $data)
{
$this->directory->getFile($sessionId)->put($data);
}
/**
* {@inheritdoc}
*/
public function destroy($sessionId)
{
try {
$this->directory->getFile($sessionId)->delete();
} catch (IOException $e) {
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/SessionStorage.php
{
$data = $this->serializer->serialize($this->data);
if ($this->options->getBoolean('lazy_write', false) &&
$this->handler instanceof LazyWriteHandlerInterface &&
md5($data) === $this->dataHash
) {
$this->handler->updateTimestamp($this->id, $data);
} else {
$this->handler->write($this->id, $data);
}
}
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/SessionStorage.php
/**
* {@inheritdoc}
*/
public function save()
{
if (!$this->started || $this->closed) {
throw new \RuntimeException('Trying to save a session that was not started yet or was already closed');
}
$this->write();
$this->handler->close();
$this->closed = true;
$this->started = false;
}
/**
* {@inheritdoc}
*/
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-foundation/Session/Session.php
{
return $this->storage->regenerate($destroy, $lifetime);
}
/**
* {@inheritdoc}
*/
public function save()
{
$this->storage->save();
}
/**
* {@inheritdoc}
*/
public function getId()
{
return $this->storage->getId();
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/SessionListener.php
* Add the session cookie to the response if it is started.
*
* @param FilterResponseEvent $event
*/
public function onResponse(FilterResponseEvent $event)
{
if (!$event->isMasterRequest() || !$this->session->isStarted()) {
return;
}
$this->session->save();
$cookie = $this->generateCookie();
$event->getResponse()->headers->setCookie($cookie);
}
protected function generateCookie()
{
$lifetime = $this->options->getInt('cookie_lifetime');
if ($lifetime !== 0) {
$lifetime += time();
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php
return $this->stoppedPropagation;
}
public function __invoke(Event $event, $eventName, EventDispatcherInterface $dispatcher)
{
$this->called = true;
$e = $this->stopwatch->start($this->name, 'event_listener');
call_user_func($this->listener, $event, $eventName, $this->dispatcher ?: $dispatcher);
if ($e->isStarted()) {
$e->stop();
}
if ($event->isPropagationStopped()) {
$this->stoppedPropagation = true;
}
}
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php
return $this->stoppedPropagation;
}
public function __invoke(Event $event, $eventName, EventDispatcherInterface $dispatcher)
{
$this->called = true;
$e = $this->stopwatch->start($this->name, 'event_listener');
call_user_func($this->listener, $event, $eventName, $this->dispatcher ?: $dispatcher);
if ($e->isStarted()) {
$e->stop();
}
if ($event->isPropagationStopped()) {
$this->stoppedPropagation = true;
}
}
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php
* @param string $eventName The name of the event to dispatch
* @param Event $event The event object to pass to the event handlers/listeners
*/
protected function doDispatch($listeners, $eventName, Event $event)
{
foreach ($listeners as $listener) {
if ($event->isPropagationStopped()) {
break;
}
call_user_func($listener, $event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
*
* @param string $eventName The name of the event
*/
private function sortListeners($eventName)
{
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php
* @param string $eventName The name of the event to dispatch
* @param Event $event The event object to pass to the event handlers/listeners
*/
protected function doDispatch($listeners, $eventName, Event $event)
{
foreach ($listeners as $listener) {
if ($event->isPropagationStopped()) {
break;
}
call_user_func($listener, $event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
*
* @param string $eventName The name of the event
*/
private function sortListeners($eventName)
{
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php
{
if (null === $event) {
$event = new Event();
}
$event->setDispatcher($this);
$event->setName($eventName);
if ($listeners = $this->getListeners($eventName)) {
$this->doDispatch($listeners, $eventName, $event);
}
return $event;
}
/**
* {@inheritdoc}
*/
public function getListeners($eventName = null)
{
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
if (null !== $this->logger && $event->isPropagationStopped()) {
$this->logger->debug(sprintf('The "%s" event is already stopped. No listeners have been called.', $eventName));
}
$this->preProcess($eventName);
$this->preDispatch($eventName, $event);
$e = $this->stopwatch->start($eventName, 'section');
$this->dispatcher->dispatch($eventName, $event);
if ($e->isStarted()) {
$e->stop();
}
$this->postDispatch($eventName, $event);
$this->postProcess($eventName);
return $event;
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-kernel/HttpKernel.php
*
* @return Response The filtered Response instance
*
* @throws \RuntimeException if the passed object is not a Response instance
*/
private function filterResponse(Response $response, Request $request, $type)
{
$event = new FilterResponseEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::RESPONSE, $event);
$this->finishRequest($request, $type);
return $event->getResponse();
}
/**
* Publishes the finish request event, then pop the request from the stack.
*
* Note that the order of the operations is important here, otherwise
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-kernel/HttpKernel.php
// the user may have forgotten to return something
if (null === $response) {
$msg .= ' Did you forget to add a return statement somewhere in your controller?';
}
throw new \LogicException($msg);
}
}
return $this->filterResponse($response, $request, $type);
}
/**
* Filters a response object.
*
* @param Response $response A Response instance
* @param Request $request An error message in case the response is not a Response object
* @param int $type The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
*
* @return Response The filtered Response instance
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-kernel/HttpKernel.php
/**
* {@inheritdoc}
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof ConflictingHeadersException) {
$e = new BadRequestHttpException('The request headers contain conflicting information regarding the origin of this request.', $e);
}
if (false === $catch) {
$this->finishRequest($request, $type);
throw $e;
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/silex/silex/src/Silex/Application.php
$this->boot();
}
$current = HttpKernelInterface::SUB_REQUEST === $type ? $this['request'] : $this['request_error'];
$this['request'] = $request;
$this->flush();
$response = $this['kernel']->handle($request, $type, $catch);
$this['request'] = $current;
return $response;
}
/**
* {@inheritdoc}
*/
public function terminate(Request $request, Response $response)
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/silex/silex/src/Silex/Application.php
*
* @param Request|null $request Request to process
*/
public function run(Request $request = null)
{
if (null === $request) {
$request = Request::createFromGlobals();
}
$response = $this->handle($request);
$response->send();
$this->terminate($request, $response);
}
/**
* {@inheritdoc}
*
* If you call this method directly instead of run(), you must call the
* terminate() method yourself if you want the finish filters to be run.
*/
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/index.php
}
}
/**
* @var \Bolt\Application $app
*/
$app = require_once __DIR__ . '/app/bootstrap.php';
if ($app) {
$app->run();
} else {
return false;
}