Sullivan SENECHAL před 8 roky
rodič
revize
a06c89c300

+ 16 - 0
CHANGELOG.md

@@ -2,6 +2,22 @@
 All notable changes to this project will be documented in this file.
 This project adheres to [Semantic Versioning](http://semver.org/).
 
+## [3.12.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.11.0...3.12.0) - 2017-01-31
+### Added
+- Compatibility with Twig 2.0
+
+### Changed
+- `--services` default-value to null in `Sonata\AdminBundle\Command\GenerateAdminCommand`
+
+### Deprecated
+- `ModelToArrayTransformer::$choiceList` property
+- `ModelToArrayTransformer::$choiceList::__construct()` three-argument-signature is deprecated
+
+### Fixed
+- "Silent display of undefined block" Twig deprecation
+- Twig deprecation notice when using template inheritance to get a macro
+- The `request` parameter is passed to custom batch actions.
+
 ## [3.11.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.10.3...3.11.0) - 2017-01-17
 ### Added
 - Extract admin group and label translations

+ 2 - 2
Form/DataTransformer/ModelsToArrayTransformer.php

@@ -40,7 +40,7 @@ class ModelsToArrayTransformer implements DataTransformerInterface
     /**
      * @var ModelChoiceList
      *
-     * @deprecated since 3.x, to be removed in 4.0
+     * @deprecated since 3.12, to be removed in 4.0
      * NEXT_MAJOR: remove this property
      */
     protected $choiceList;
@@ -209,7 +209,7 @@ class ModelsToArrayTransformer implements DataTransformerInterface
     private function triggerDeprecation()
     {
         @trigger_error(sprintf(
-                'Using the "%s::$choiceList" property is deprecated since version 3.x and will be removed in 4.0.',
+                'Using the "%s::$choiceList" property is deprecated since version 3.12 and will be removed in 4.0.',
                 __CLASS__),
             E_USER_DEPRECATED)
         ;

+ 3 - 4
UPGRADE-3.x.md

@@ -1,14 +1,13 @@
 UPGRADE 3.x
 ===========
 
+UPGRADE FROM 3.11 to 3.12
+=========================
+
 ## Deprecated ModelsToArrayTransformer::$choiceList property
 
 When instantiating a ModelsToArrayTransformer object, please use the 2 parameter signature ($modelManager, $class).
 
-## Deprecated Sonata\AdminBundle\Controller\CoreController::getRequest()
-
-Inject `Symfony\Component\HttpFoundation\Request` in your actions directly as an argument.
-
 UPGRADE FROM 3.10 to 3.11
 =========================