Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7454253
SQLiteSessionInit.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
698 B
Referenced Files
None
Subscribers
None
SQLiteSessionInit.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment