}
/**
* {@inheritdoc}
*/
public function write($id, $data)
{
return (bool) $this->handler->write($id, $data);
}
}
/**
* {@inheritdoc}
*/
public function write($id, $data)
{
return (bool) $this->handler->write($id, $data);
}
}
/**
* {@inheritdoc}
*/
public function save()
{
session_write_close();
if (!$this->saveHandler->isWrapper() && !$this->saveHandler->isSessionHandlerInterface()) {
}
/**
* {@inheritdoc}
*/
public function save()
{
$this->storage->save();
}
/**
* {@inheritdoc}
*/
public function save()
{
$this->ageFlashData();
return parent::save();
}
// once by PHP and never updated on each subsequent page load of the apps.
$this->registerCookieToucher();
$app = $this->app;
$this->app->close(function() use ($app)
{
$app['session.store']->save();
});
}
if (isset($this->globalFilters[$name]))
{
// There may be multiple handlers registered for a global middleware so we
// will need to spin through each one and execute each of them and will
// return back first non-null responses we come across from a filter.
foreach ($this->globalFilters[$name] as $filter)
{
$response = call_user_func_array($filter, $parameters);
if ( ! is_null($response)) return $response;
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @param \Symfony\Component\HttpFoundation\Response $response
* @return mixed
*/
public function callCloseFilter(Request $request, SymfonyResponse $response)
{
$this->callGlobalFilter($request, 'close', array($response));
}
*
* @return void
*/
public function run()
{
$response = $this->dispatch($this['request']);
$this['router']->callCloseFilter($this['request'], $response);
$response->send();
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful applications we have created for them.
|
*/
$app->run();
/*