Skip to content

Commit

Permalink
Deprecate SeoAwareTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 8, 2022
1 parent d591506 commit 60dacfd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 0 additions & 5 deletions docs/reference/usage.rst
Expand Up @@ -44,11 +44,6 @@ You could also prepend the page title, so that the global title is used as a suf
$seoPage
->addTitlePrefix($post->getTitle());

.. note::

If you need a shortcut to inject the seo page into any class, you could use the
``Sonata\SeoBundle\Seo\SeoAwareTrait``.

These values can be used inside a twig template.

.. code-block:: html+twig
Expand Down
7 changes: 6 additions & 1 deletion phpstan-baseline.neon
@@ -1,2 +1,7 @@
parameters:
ignoreErrors:
excludePaths:
# This trait is deprecated and will be remove in next major
# NEXT_MAJOR: Remove these files
- src/Seo/SeoAwareTrait.php

ignoreErrors:
5 changes: 5 additions & 0 deletions src/Seo/SeoAwareTrait.php
Expand Up @@ -13,6 +13,11 @@

namespace Sonata\SeoBundle\Seo;

/**
* @deprecated since sonata-project/seo-bundle 3.6, will be remove in 4.0.
*
* NEXT_MAJOR: remove this trait
*/
trait SeoAwareTrait
{
/**
Expand Down

0 comments on commit 60dacfd

Please sign in to comment.