mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Maintenance] Change trigger_error to trigger_deprecation in rest of the classes
This commit is contained in:
parent
93ecb502c9
commit
0fac9e072f
4 changed files with 16 additions and 4 deletions
|
|
@ -15,6 +15,10 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
@trigger_error('The "TestAppKernel" class located at "app/TestAppKernel.php" is deprecated since Sylius 1.3. Use "Kernel" class located at "src/Kernel.php" instead.', \E_USER_DEPRECATED);
|
||||
trigger_deprecation(
|
||||
'sylius/sylius',
|
||||
'1.3',
|
||||
'The "TestAppKernel" class located at "app/TestAppKernel.php" is deprecated. Use "Kernel" class located at "src/Kernel.php" instead.',
|
||||
);
|
||||
|
||||
class_alias(Kernel::class, TestAppKernel::class);
|
||||
|
|
|
|||
|
|
@ -15,4 +15,8 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
@trigger_error('Importing files from Sylius/Sylius\'s "app/config" directory is deprecated since Sylius 1.3.', \E_USER_DEPRECATED);
|
||||
trigger_deprecation(
|
||||
'sylius/sylius',
|
||||
'1.3',
|
||||
'Importing files from Sylius/Sylius\'s "app/config" directory is deprecated since Sylius 1.3.',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -17,6 +17,10 @@ declare(strict_types=1);
|
|||
|
||||
use Symfony\Component\Routing\RouteCollection;
|
||||
|
||||
@trigger_error('Importing files from Sylius/Sylius\'s "app/config" directory is deprecated since Sylius 1.3.', \E_USER_DEPRECATED);
|
||||
trigger_deprecation(
|
||||
'sylius/sylius',
|
||||
'1.3',
|
||||
'Importing files from Sylius/Sylius\'s "app/config" directory is deprecated since Sylius 1.3.',
|
||||
);
|
||||
|
||||
return new RouteCollection();
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ the migration:
|
|||
|
||||
.. code-block:: php
|
||||
|
||||
@trigger_error(
|
||||
trigger_deprecation(
|
||||
'XXX() is deprecated since version 2.X and will be removed in 2.Y. Use XXX instead.',
|
||||
\E_USER_DEPRECATED
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue