Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
d6f66d82
Unverified
Commit
d6f66d82
authored
Apr 07, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed EchoSQLLogger
parent
8be6d163
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
50 deletions
+4
-50
UPGRADE.md
UPGRADE.md
+4
-0
EchoSQLLogger.php
src/Logging/EchoSQLLogger.php
+0
-37
ConnectionTest.php
tests/ConnectionTest.php
+0
-13
No files found.
UPGRADE.md
View file @
d6f66d82
# Upgrade to 3.0
## BC BREAK: Removed `EchoSQLLogger`
`EchoSQLLogger`
is no longer available as part of the package.
## BC BREAK: Removed support for SQL Anywhere 12 and older
DBAL now requires SQL Anywhere 16 or newer, support for unmaintained versions has been dropped.
...
...
src/Logging/EchoSQLLogger.php
deleted
100644 → 0
View file @
8be6d163
<?php
namespace
Doctrine\DBAL\Logging
;
use
const
PHP_EOL
;
use
function
var_dump
;
/**
* A SQL logger that logs to the standard output using echo/var_dump.
*/
class
EchoSQLLogger
implements
SQLLogger
{
/**
* {@inheritdoc}
*/
public
function
startQuery
(
$sql
,
?
array
$params
=
null
,
?
array
$types
=
null
)
{
echo
$sql
.
PHP_EOL
;
if
(
$params
)
{
var_dump
(
$params
);
}
if
(
!
$types
)
{
return
;
}
var_dump
(
$types
);
}
/**
* {@inheritdoc}
*/
public
function
stopQuery
()
{
}
}
tests/ConnectionTest.php
View file @
d6f66d82
...
...
@@ -19,7 +19,6 @@ use Doctrine\DBAL\Events;
use
Doctrine\DBAL\Exception\InvalidArgumentException
;
use
Doctrine\DBAL\FetchMode
;
use
Doctrine\DBAL\Logging\DebugStack
;
use
Doctrine\DBAL\Logging\EchoSQLLogger
;
use
Doctrine\DBAL\ParameterType
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
use
Doctrine\DBAL\VersionAwarePlatformDriver
;
...
...
@@ -211,18 +210,6 @@ class ConnectionTest extends TestCase
];
}
/**
* Pretty dumb test, however we want to check that the EchoSQLLogger correctly implements the interface.
*
* @group DBAL-11
*/
public
function
testEchoSQLLogger
()
:
void
{
$logger
=
new
EchoSQLLogger
();
$this
->
connection
->
getConfiguration
()
->
setSQLLogger
(
$logger
);
self
::
assertSame
(
$logger
,
$this
->
connection
->
getConfiguration
()
->
getSQLLogger
());
}
/**
* Pretty dumb test, however we want to check that the DebugStack correctly implements the interface.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment