浏览代码

remove deprecated method configureShowField

Thomas Rabaix 11 年之前
父节点
当前提交
d3598b471e
共有 2 个文件被更改,包括 5 次插入13 次删除
  1. 0 11
      Admin/Admin.php
  2. 5 2
      UPGRADE-2.3.md

+ 0 - 11
Admin/Admin.php

@@ -475,16 +475,6 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
 
     }
 
-    /**
-     * @deprecated removed with Symfony 2.2
-     *
-     * {@inheritdoc}
-     */
-    protected function configureShowField(ShowMapper $show)
-    {
-
-    }
-
     /**
      * {@inheritdoc}
      */
@@ -721,7 +711,6 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
         $this->show = new FieldDescriptionCollection();
         $mapper = new ShowMapper($this->showBuilder, $this->show, $this);
 
-        $this->configureShowField($mapper); // deprecated, use configureShowFields instead
         $this->configureShowFields($mapper);
 
         foreach ($this->getExtensions() as $extension) {

+ 5 - 2
UPGRADE-2.3.md

@@ -1,5 +1,5 @@
-UPGRADE FROM 2.2 to 2.3 (Bootstrap3 theming)
-============================================
+UPGRADE FROM 2.2 to 2.3
+=======================
 
 ### Dependencies
 
@@ -14,3 +14,6 @@ You'll need to follow the dependencies upgrade instructions.
 
  - ``configureSideMenu`` and ``buildSideMenu`` methods of the ``Admin`` class have been deprecated; they are replaced by ``configureTabMenu`` and ``buildTabMenu``.
 
+### Remove configureShowField
+
+ - ``configureShowField`` has been deprecated since a while now, use ``configureShowFields`` instead => add a ``s``.