Sullivan SENECHAL 8 سال پیش
والد
کامیت
75a8c1d8ef
4فایلهای تغییر یافته به همراه31 افزوده شده و 9 حذف شده
  1. 8 8
      Admin/AbstractAdmin.php
  2. 1 1
      Admin/AdminInterface.php
  3. 19 0
      CHANGELOG.md
  4. 3 0
      UPGRADE-3.x.md

+ 8 - 8
Admin/AbstractAdmin.php

@@ -284,7 +284,7 @@ abstract class AbstractAdmin implements AdminInterface, DomainObjectInterface
      *
      * @var \Symfony\Component\Translation\TranslatorInterface
      *
-     * @deprecated since 3.x, to be removed with 4.0
+     * @deprecated since 3.9, to be removed with 4.0
      */
     protected $translator;
 
@@ -2113,7 +2113,7 @@ EOT;
     public function trans($id, array $parameters = array(), $domain = null, $locale = null)
     {
         @trigger_error(
-            'The '.__METHOD__.' method is deprecated since version 3.x and will be removed in 4.0.'.
+            'The '.__METHOD__.' method is deprecated since version 3.9 and will be removed in 4.0.'.
             E_USER_DEPRECATED
         );
 
@@ -2135,12 +2135,12 @@ EOT;
      *
      * @return string the translated string
      *
-     * @deprecated since 3.x, to be removed with 4.0
+     * @deprecated since 3.9, to be removed with 4.0
      */
     public function transChoice($id, $count, array $parameters = array(), $domain = null, $locale = null)
     {
         @trigger_error(
-            'The '.__METHOD__.' method is deprecated since version 3.x and will be removed in 4.0.'.
+            'The '.__METHOD__.' method is deprecated since version 3.9 and will be removed in 4.0.'.
             E_USER_DEPRECATED
         );
 
@@ -2170,12 +2170,12 @@ EOT;
      *
      * NEXT_MAJOR: remove this method
      *
-     * @deprecated since 3.x, to be removed with 4.0
+     * @deprecated since 3.9, to be removed with 4.0
      */
     public function setTranslator(TranslatorInterface $translator)
     {
         @trigger_error(
-            'The '.__METHOD__.' method is deprecated since version 3.x and will be removed in 4.0.'.
+            'The '.__METHOD__.' method is deprecated since version 3.9 and will be removed in 4.0.'.
             E_USER_DEPRECATED
         );
 
@@ -2187,12 +2187,12 @@ EOT;
      *
      * NEXT_MAJOR: remove this method
      *
-     * @deprecated since 3.x, to be removed with 4.0
+     * @deprecated since 3.9, to be removed with 4.0
      */
     public function getTranslator()
     {
         @trigger_error(
-            'The '.__METHOD__.' method is deprecated since version 3.x and will be removed in 4.0.'.
+            'The '.__METHOD__.' method is deprecated since version 3.9 and will be removed in 4.0.'.
             E_USER_DEPRECATED
         );
 

+ 1 - 1
Admin/AdminInterface.php

@@ -277,7 +277,7 @@ interface AdminInterface
      *
      * @return string the translated string
      *
-     * @deprecated since 3.x, to be removed in 4.0
+     * @deprecated since 3.9, to be removed in 4.0
      */
     public function trans($id, array $parameters = array(), $domain = null, $locale = null);
 

+ 19 - 0
CHANGELOG.md

@@ -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.9.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.8.0...3.9.0) - 2016-10-06
+### Added
+- Added `CRUDController::trans` method
+
+### Changed
+- Translation in twig templates uses the twig translation filter
+
+### Deprecated
+- Deprecated `AdminInterface::trans` method
+- Deprecated `AbstractAdmin::$translator` property
+- Deprecated `AbstractAdmin::trans` method
+- Deprecated `AbstractAdmin::transChoice` method
+- Deprecated `AbstractAdmin::getTranslator` method
+- Deprecated `AbstractAdmin::setTranslator` method
+
+### Fixed
+- Fixed missing default `translationDomain`
+- Fixed deprecated `BaseBlockService` usage
+
 ## [3.8.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.7.1...3.8.0) - 2016-09-20
 ### Added
 - Added three new sub-blocks to standard_layouts javascript block

+ 3 - 0
UPGRADE-3.x.md

@@ -1,6 +1,9 @@
 UPGRADE 3.x
 ===========
 
+UPGRADE FROM 3.8 to 3.9
+=======================
+
 ## Deprecated admin translator
 
 The `$translator` property and the corresponding methods (`setTranslator`, `getTranslator`, `trans` and `transChoice`) in `AbstractAdmin` are deprecated.