Skip to content

Commit 5fac47d

Browse files
committed
Moved deprecation notices at the begining of the classes
1 parent 3aee168 commit 5fac47d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\Profiler;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\BaseMemcacheProfilerStorage class is deprecated since Symfony 2.8 and will be removed in 3.0. Use FileProfilerStorage instead.', E_USER_DEPRECATED);
15+
1416
/**
1517
* Base Memcache storage for profiling information in a Memcache.
1618
*
@@ -36,8 +38,6 @@ abstract class BaseMemcacheProfilerStorage implements ProfilerStorageInterface
3638
*/
3739
public function __construct($dsn, $username = '', $password = '', $lifetime = 86400)
3840
{
39-
@trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.8 and will be removed in 3.0. Use FileProfilerStorage instead.', E_USER_DEPRECATED);
40-
4141
$this->dsn = $dsn;
4242
$this->lifetime = (int) $lifetime;
4343
}

src/Symfony/Component/HttpKernel/Profiler/MongoDbProfilerStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\Profiler;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\MongoDbProfilerStorage class is deprecated since Symfony 2.8 and will be removed in 3.0. Use FileProfilerStorage instead.', E_USER_DEPRECATED);
15+
1416
/**
1517
* @deprecated Deprecated since Symfony 2.8, to be removed in Symfony 3.0.
1618
* Use {@link FileProfilerStorage} instead.
@@ -31,8 +33,6 @@ class MongoDbProfilerStorage implements ProfilerStorageInterface
3133
*/
3234
public function __construct($dsn, $username = '', $password = '', $lifetime = 86400)
3335
{
34-
@trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.8 and will be removed in 3.0. Use FileProfilerStorage instead.', E_USER_DEPRECATED);
35-
3636
$this->dsn = $dsn;
3737
$this->lifetime = (int) $lifetime;
3838
}

src/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\Profiler;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\PdoProfilerStorage class is deprecated since Symfony 2.8 and will be removed in 3.0. Use FileProfilerStorage instead.', E_USER_DEPRECATED);
15+
1416
/**
1517
* Base PDO storage for profiling information in a PDO database.
1618
*
@@ -38,8 +40,6 @@ abstract class PdoProfilerStorage implements ProfilerStorageInterface
3840
*/
3941
public function __construct($dsn, $username = '', $password = '', $lifetime = 86400)
4042
{
41-
@trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.8 and will be removed in 3.0. Use FileProfilerStorage instead.', E_USER_DEPRECATED);
42-
4343
$this->dsn = $dsn;
4444
$this->username = $username;
4545
$this->password = $password;

src/Symfony/Component/HttpKernel/Profiler/RedisProfilerStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\Profiler;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\RedisProfilerStorage class is deprecated since Symfony 2.8 and will be removed in 3.0. Use FileProfilerStorage instead.', E_USER_DEPRECATED);
15+
1416
/**
1517
* RedisProfilerStorage stores profiling information in Redis.
1618
*
@@ -47,8 +49,6 @@ class RedisProfilerStorage implements ProfilerStorageInterface
4749
*/
4850
public function __construct($dsn, $username = '', $password = '', $lifetime = 86400)
4951
{
50-
@trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.8 and will be removed in 3.0. Use FileProfilerStorage instead.', E_USER_DEPRECATED);
51-
5252
$this->dsn = $dsn;
5353
$this->lifetime = (int) $lifetime;
5454
}

0 commit comments

Comments
 (0)