Skip to content

Commit

Permalink
3.18.0 (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Nov 6, 2021
1 parent 0a691d8 commit 4a6e564
Show file tree
Hide file tree
Showing 37 changed files with 257 additions and 50 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.18.0](https://github.com/sonata-project/SonataClassificationBundle/compare/3.17.0...3.18.0) - 2021-11-06
### Deprecated
- [[#765](https://github.com/sonata-project/SonataClassificationBundle/pull/765)] `BaseCategory::disableChildrenLazyLoading()` ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#760](https://github.com/sonata-project/SonataClassificationBundle/pull/760)] CategoryManager::getRootCategoriesPager() ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#760](https://github.com/sonata-project/SonataClassificationBundle/pull/760)] CategoryManager::getSubCategoriesPager() ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#735](https://github.com/sonata-project/SonataClassificationBundle/pull/735)] Deprecated ReST API with FOSRest, Nelmio Api Docs and JMS Serializer. ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] Extending classes marked as final: ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Admin\CategoryAdmin` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Admin\CollectionAdmin` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Admin\ContextAdmin` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Admin\TagAdmin` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Command\FixContextCommand` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Controller\CategoryAdminController` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\DependencyInjection\Configuration` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\DependencyInjection\SonataClassificationExtension` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Document\CategoryManager` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Document\CollectionManager` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Document\TagManager` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Entity\CategoryManager` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Entity\CollectionManager` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Entity\ContextManager` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Entity\TagManager` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\Form\Type\Category\SelectorType` ([@wbloszyk](https://github.com/wbloszyk))
- [[#738](https://github.com/sonata-project/SonataClassificationBundle/pull/738)] `Sonata\ClassificationBundle\SonataClassificationBundle` ([@wbloszyk](https://github.com/wbloszyk))

## [3.17.0](https://github.com/sonata-project/SonataClassificationBundle/compare/3.16.0...3.17.0) - 2021-09-21
### Added
- [[#721](https://github.com/sonata-project/SonataClassificationBundle/pull/721)] Missing methods in interfaces (through the `@method` annotation). ([@phansys](https://github.com/phansys))
Expand Down
4 changes: 2 additions & 2 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
UPGRADE 3.x
===========

UPGRADE FROM 3.x to 3.x
=======================
UPGRADE FROM 3.17 to 3.18
=========================

### Deprecate API

Expand Down
2 changes: 1 addition & 1 deletion src/Admin/CategoryAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use Symfony\Component\Validator\Constraints\Valid;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class CategoryAdmin extends ContextAwareAdmin
{
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/CollectionAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use Symfony\Component\Validator\Constraints\Valid;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class CollectionAdmin extends ContextAwareAdmin
{
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/ContextAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class ContextAdmin extends AbstractAdmin
{
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/TagAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class TagAdmin extends ContextAwareAdmin
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/FixContextCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class FixContextCommand extends ContainerAwareCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Api/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
* @author Vincent Composieux <[email protected]>
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
class CategoryController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Api/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
* @author Vincent Composieux <[email protected]>
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
class CollectionController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Api/ContextController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
* @author Thomas Rabaix <[email protected]>
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
class ContextController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Api/TagController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
* @author Vincent Composieux <[email protected]>
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
class TagController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/CategoryAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* @author Thomas Rabaix <[email protected]>
*
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class CategoryAdminController extends Controller
{
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class Configuration implements ConfigurationInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/SonataClassificationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @author Thomas Rabaix <[email protected]>
*
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class SonataClassificationExtension extends Extension
{
Expand Down
4 changes: 2 additions & 2 deletions src/Document/CategoryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
use Sonata\Doctrine\Document\BaseDocumentManager;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class CategoryManager extends BaseDocumentManager implements CategoryManagerInterface
{
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function getPager(array $criteria, $page, $limit = 10, array $sort = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Document/CollectionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
use Sonata\Doctrine\Document\BaseDocumentManager;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class CollectionManager extends BaseDocumentManager implements CollectionManagerInterface
{
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function getPager(array $criteria, $page, $limit = 10, array $sort = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Document/TagManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
use Sonata\Doctrine\Document\BaseDocumentManager;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class TagManager extends BaseDocumentManager implements TagManagerInterface
{
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function getPager(array $criteria, $page, $limit = 10, array $sort = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/BaseCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
abstract class BaseCategory extends ModelCategory
{
/**
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function disableChildrenLazyLoading()
{
@trigger_error(
sprintf(
'The method %s is deprecated since sonata-project/classification-bundle 3.x and will be removed in 4.0.',
'The method %s is deprecated since sonata-project/classification-bundle 3.18 and will be removed in 4.0.',
__METHOD__
),
\E_USER_DEPRECATED
Expand Down
12 changes: 6 additions & 6 deletions src/Entity/CategoryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use Sonata\Doctrine\Entity\BaseEntityManager;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class CategoryManager extends BaseEntityManager implements CategoryManagerInterface
{
Expand Down Expand Up @@ -51,13 +51,13 @@ public function __construct($class, ManagerRegistry $registry, ContextManagerInt
/**
* Returns a pager to iterate over the root category.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function getRootCategoriesPager($page = 1, $limit = 25, $criteria = [])
{
@trigger_error(
sprintf(
'The method %s is deprecated since sonata-project/classification-bundle 3.x and will be removed in 4.0.',
'The method %s is deprecated since sonata-project/classification-bundle 3.18 and will be removed in 4.0.',
__METHOD__
),
\E_USER_DEPRECATED
Expand All @@ -79,13 +79,13 @@ public function getRootCategoriesPager($page = 1, $limit = 25, $criteria = [])
}

/**
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function getSubCategoriesPager($categoryId, $page = 1, $limit = 25, $criteria = [])
{
@trigger_error(
sprintf(
'The method %s is deprecated since sonata-project/classification-bundle 3.x and will be removed in 4.0.',
'The method %s is deprecated since sonata-project/classification-bundle 3.18 and will be removed in 4.0.',
__METHOD__
),
\E_USER_DEPRECATED
Expand Down Expand Up @@ -226,7 +226,7 @@ public function getCategories($context = null)
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function getPager(array $criteria, $page, $limit = 10, array $sort = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/CollectionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
use Sonata\Doctrine\Entity\BaseEntityManager;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class CollectionManager extends BaseEntityManager implements CollectionManagerInterface
{
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function getPager(array $criteria, $page, $limit = 10, array $sort = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/ContextManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
use Sonata\Doctrine\Entity\BaseEntityManager;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class ContextManager extends BaseEntityManager implements ContextManagerInterface
{
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function getPager(array $criteria, $page, $limit = 10, array $sort = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/TagManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
use Sonata\Doctrine\Entity\BaseEntityManager;

/**
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class TagManager extends BaseEntityManager implements TagManagerInterface
{
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
public function getPager(array $criteria, $page, $limit = 10, array $sort = [])
{
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/ApiCategoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* NEXT_MAJOR: Remove this file.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
class ApiCategoryType extends BaseDoctrineORMSerializationType
{
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/ApiCollectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* NEXT_MAJOR: Remove this file.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
class ApiCollectionType extends BaseDoctrineORMSerializationType
{
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/ApiContextType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* NEXT_MAJOR: Remove this file.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
class ApiContextType extends BaseDoctrineORMSerializationType
{
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/ApiTagType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* NEXT_MAJOR: Remove this file.
*
* @deprecated since sonata-project/classification-bundle 3.x, to be removed in 4.0.
* @deprecated since sonata-project/classification-bundle 3.18, to be removed in 4.0.
*/
class ApiTagType extends BaseDoctrineORMSerializationType
{
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/CategorySelectorType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @author Thomas Rabaix <[email protected]>
*
* @final since sonata-project/classification-bundle 3.x
* @final since sonata-project/classification-bundle 3.18
*/
class CategorySelectorType extends AbstractType
{
Expand Down
Loading

0 comments on commit 4a6e564

Please sign in to comment.