Skip to content

Commit

Permalink
Add some deprecation notices and annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jun 24, 2020
1 parent 1d7968c commit 10b1b3e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
Expand Up @@ -18,6 +18,10 @@
use Symfony\Contracts\Translation\TranslatorInterface;
use Terminal42\ServiceAnnotationBundle\ServiceAnnotationInterface;

/**
* @internal
* @deprecated
*/
class LegacyRoutingListener implements ServiceAnnotationInterface
{
/**
Expand Down
4 changes: 4 additions & 0 deletions core-bundle/src/Routing/Candidates/LegacyCandidates.php
Expand Up @@ -14,6 +14,10 @@

use Symfony\Component\HttpFoundation\Request;

/**
* @internal
* @deprecated
*/
class LegacyCandidates extends Candidates
{
/**
Expand Down
5 changes: 5 additions & 0 deletions core-bundle/src/Routing/FrontendLoader.php
Expand Up @@ -17,6 +17,11 @@
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;

@trigger_error('The Contao\CoreBundle\Routing\FrontendLoader is deprecated. Use Symfony routing instead.', E_USER_DEPRECATED);

/**
* @deprecated The Contao\CoreBundle\Routing\FrontendLoader is deprecated. Use Symfony routing instead.
*/
class FrontendLoader extends Loader
{
/**
Expand Down
3 changes: 3 additions & 0 deletions core-bundle/src/Routing/LegacyRouteProvider.php
Expand Up @@ -18,8 +18,11 @@
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;

@trigger_error('The following routes are deprecated: contao_frontend, contao_index, contao_root, contao_catch_all', E_USER_DEPRECATED);

/**
* @internal
* @deprecated
*/
class LegacyRouteProvider implements RouteProviderInterface
{
Expand Down
3 changes: 3 additions & 0 deletions core-bundle/src/Routing/Matcher/LegacyMatcher.php
Expand Up @@ -21,6 +21,9 @@
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Matcher\RequestMatcherInterface;

/**
* @deprecated
*/
class LegacyMatcher implements RequestMatcherInterface
{
/**
Expand Down
3 changes: 3 additions & 0 deletions core-bundle/src/Routing/UrlGenerator.php
Expand Up @@ -23,6 +23,9 @@

@trigger_error('The Contao\CoreBundle\Routing\UrlGenerator is deprecated. Use the Symfony router instead.', E_USER_DEPRECATED);

/**
* @deprecated The Contao\CoreBundle\Routing\UrlGenerator is deprecated. Use the Symfony router instead.
*/
class UrlGenerator implements UrlGeneratorInterface
{
/**
Expand Down

0 comments on commit 10b1b3e

Please sign in to comment.