Page MenuHomeWickedGov Phorge

SQLiteSessionInit.php
No OneTemporary

Size
698 B
Referenced Files
None
Subscribers
None

SQLiteSessionInit.php

<?php
namespace Doctrine\DBAL\Event\Listeners;
use Doctrine\Common\EventSubscriber;
use Doctrine\DBAL\Event\ConnectionEventArgs;
use Doctrine\DBAL\Events;
use Doctrine\DBAL\Exception;
/** @deprecated Use {@see \Doctrine\DBAL\Driver\AbstractSQLiteDriver\Middleware\EnableForeignKeys} instead. */
class SQLiteSessionInit implements EventSubscriber
{
/**
* @return void
*
* @throws Exception
*/
public function postConnect(ConnectionEventArgs $args)
{
$args->getConnection()->executeStatement('PRAGMA foreign_keys=ON');
}
/**
* {@inheritDoc}
*/
public function getSubscribedEvents()
{
return [Events::postConnect];
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 22, 23:09 (2 d, 9 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
28/9c/4ed786d6f407b3e923605506f770
Default Alt Text
SQLiteSessionInit.php (698 B)

Event Timeline