Skip to content

Commit

Permalink
3.99.0 (#7177)
Browse files Browse the repository at this point in the history
* 3.99.0

* Update CHANGELOG.md

Co-authored-by: Javier Spagnoletti <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Javier Spagnoletti <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Javier Spagnoletti <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Javier Spagnoletti <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Javier Spagnoletti <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Javier Spagnoletti <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Javier Spagnoletti <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Javier Spagnoletti <[email protected]>

Co-authored-by: Javier Spagnoletti <[email protected]>
  • Loading branch information
VincentLanglet and phansys authored May 9, 2021
1 parent 6ec9a7c commit 4c8311f
Show file tree
Hide file tree
Showing 11 changed files with 114 additions and 95 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.99.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.98.2...3.99.0) - 2021-05-09
### Added
- [[#7077](https://github.com/sonata-project/SonataAdminBundle/pull/7077)] Added `default_admin_services` config key to overwrite the default services provided to all the admin ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#7144](https://github.com/sonata-project/SonataAdminBundle/pull/7144)] Added `AdminExtensionInterface::configure()` method ([@yann-eugone](https://github.com/yann-eugone))
- [[#7144](https://github.com/sonata-project/SonataAdminBundle/pull/7144)] Added `AbstractAdminExtension::configure()` method with no content ([@yann-eugone](https://github.com/yann-eugone))
- [[#6950](https://github.com/sonata-project/SonataAdminBundle/pull/6950)] Added `AdminFetcher` to fetch the `Admin` service associated to a request ([@franmomu](https://github.com/franmomu))
- [[#6950](https://github.com/sonata-project/SonataAdminBundle/pull/6950)] Added `AdminParamConverter` to be able to inject an Admin service in a controller ([@franmomu](https://github.com/franmomu))
- [[#7108](https://github.com/sonata-project/SonataAdminBundle/pull/7108)] `final` for method of every abstract classes ([@VincentLanglet](https://github.com/VincentLanglet))

### Changed
- [[#7144](https://github.com/sonata-project/SonataAdminBundle/pull/7144)] Changed `AbstractAdmin::initialize()` and call `AdminExtensionInterface::configure()` on each extension ([@yann-eugone](https://github.com/yann-eugone))

### Deprecated
- [[#7077](https://github.com/sonata-project/SonataAdminBundle/pull/7077)] Deprecated `admin_services` config key ([@VincentLanglet](https://github.com/VincentLanglet))

### Fixed
- [[#7162](https://github.com/sonata-project/SonataAdminBundle/pull/7162)] Fix font route to be relative and not absolute ([@jordisala1991](https://github.com/jordisala1991))
- [[#7149](https://github.com/sonata-project/SonataAdminBundle/pull/7149)] `ProxyQuery::execute()` return type; it doesn't require to be an instance of `Countable` ([@VincentLanglet](https://github.com/VincentLanglet))

## [3.98.2](https://github.com/sonata-project/SonataAdminBundle/compare/3.98.1...3.98.2) - 2021-05-01
### Fixed
- [[#7132](https://github.com/sonata-project/SonataAdminBundle/pull/7132)] Fixed inclusion of Source Sans Pro as main font ([@jordisala1991](https://github.com/jordisala1991))
Expand Down
4 changes: 2 additions & 2 deletions docs/cookbook/recipe_decouple_crud_controller.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Decouple from CRUDController
============================

.. versionadded:: 3.x
.. versionadded:: 3.99

The ability to inject an Admin to an action and ``AdminFetcherInterface`` service were introduced in 3.x.
The ability to inject an Admin to an action and ``AdminFetcherInterface`` service were introduced in 3.99.

When creating custom actions, we can create our controllers without extending ``CRUDController``. What we usually need
is to access the ``admin`` instance associated to the action, to do so we can use a param converter or
Expand Down
8 changes: 4 additions & 4 deletions src/Builder/AbstractFormContractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(FormFactoryInterface $formFactory)
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*/
public function fixFieldDescription(AdminInterface $admin, FieldDescriptionInterface $fieldDescription)
{
Expand All @@ -52,7 +52,7 @@ public function fixFieldDescription(AdminInterface $admin, FieldDescriptionInter
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* @return FormFactoryInterface
*/
Expand All @@ -62,15 +62,15 @@ public function getFormFactory()
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*/
public function getFormBuilder($name, array $formOptions = [])
{
return $this->getFormFactory()->createNamedBuilder($name, FormType::class, null, $formOptions);
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*/
public function getDefaultOptions($type, FieldDescriptionInterface $fieldDescription)
{
Expand Down
34 changes: 17 additions & 17 deletions src/Datagrid/Pager.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function setMaxRecordLimit($limit)
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* Returns an array of page numbers to use in pagination links.
*
Expand Down Expand Up @@ -227,7 +227,7 @@ public function getLinks($nbLinks = null)
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* Returns true if the current query requires pagination.
*
Expand Down Expand Up @@ -483,7 +483,7 @@ public function getNbResults()
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* @return int
*/
Expand All @@ -493,7 +493,7 @@ public function getFirstPage()
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* @return int
*/
Expand All @@ -503,7 +503,7 @@ public function getLastPage()
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* @return int
*/
Expand All @@ -513,7 +513,7 @@ public function getPage()
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* @return int
*/
Expand All @@ -523,7 +523,7 @@ public function getNextPage()
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* @return int
*/
Expand All @@ -533,7 +533,7 @@ public function getPreviousPage()
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*/
public function setPage($page)
{
Expand All @@ -546,15 +546,15 @@ public function setPage($page)
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*/
public function getMaxPerPage()
{
return $this->maxPerPage;
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*/
public function setMaxPerPage($max)
{
Expand All @@ -577,23 +577,23 @@ public function setMaxPerPage($max)
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*/
public function getMaxPageLinks()
{
return $this->maxPageLinks;
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*/
public function setMaxPageLinks($maxPageLinks)
{
$this->maxPageLinks = $maxPageLinks;
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* Returns true if on the first page.
*
Expand All @@ -605,7 +605,7 @@ public function isFirstPage()
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* Returns true if on the last page.
*
Expand Down Expand Up @@ -888,15 +888,15 @@ public function setCountColumn(array $countColumn)
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*/
public function setQuery($query)
{
$this->query = $query;
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* @return ProxyQueryInterface|null
*
Expand Down Expand Up @@ -927,7 +927,7 @@ protected function setNbResults($nb)
}

/**
* @final since sonata-project/admin-bundle 3.x.
* @final since sonata-project/admin-bundle 3.99.
*
* @param int $page
*
Expand Down
2 changes: 1 addition & 1 deletion src/Datagrid/SimplePager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SimplePager extends Pager
/**
* NEXT_MAJOR: Remove this property.
*
* @deprecated since sonata-project/admin-bundle 3.x
* @deprecated since sonata-project/admin-bundle 3.99
*
* @var bool
*/
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public function getConfigTreeBuilder()
->end()
// NEXT_MAJOR: Remove this node.
->arrayNode('admin_services')
->setDeprecated('The "%node%" option is deprecated since sonata-project/admin-bundle 3.x.')
->setDeprecated('The "%node%" option is deprecated since sonata-project/admin-bundle 3.99.')
->prototype('array')
->children()
->scalarNode('model_manager')->defaultNull()->end()
Expand Down
Loading

0 comments on commit 4c8311f

Please sign in to comment.