Quellcode durchsuchen

Replace deprecation messages and comment for 3.0 (#3733)

Old planned version was 2.4. It's now 3.0.

See why on #3731.
Sullivan SENECHAL vor 9 Jahren
Ursprung
Commit
2f26b5b3d5

+ 1 - 1
Admin/AdminInterface.php

@@ -655,7 +655,7 @@ interface AdminInterface
      */
     public function delete($object);
 
-//TODO: uncomment this method for 3.0
+//TODO: uncomment this method for 4.0
 //    /**
 //     * @param mixed $object
 //     */

+ 2 - 2
Controller/CRUDController.php

@@ -385,7 +385,7 @@ class CRUDController extends Controller
         $form->handleRequest($request);
 
         if ($form->isSubmitted()) {
-            //TODO: remove this check for 3.0
+            //TODO: remove this check for 4.0
             if (method_exists($this->admin, 'preValidate')) {
                 $this->admin->preValidate($object);
             }
@@ -670,7 +670,7 @@ class CRUDController extends Controller
         $form->handleRequest($request);
 
         if ($form->isSubmitted()) {
-            //TODO: remove this check for 3.0
+            //TODO: remove this check for 4.0
             if (method_exists($this->admin, 'preValidate')) {
                 $this->admin->preValidate($object);
             }

+ 1 - 1
Controller/CoreController.php

@@ -144,7 +144,7 @@ class CoreController extends Controller
      * This method is compatible with both Symfony 2.3 and Symfony 3
      *
      * @deprecated Use the Request action argument. This method will be removed
-     *             in SonataAdminBundle 3.0 and the action methods adjusted.
+     *             in SonataAdminBundle 4.0 and the action methods adjusted.
      *
      * @return Request
      */

+ 1 - 1
Datagrid/ListMapper.php

@@ -78,7 +78,7 @@ class ListMapper extends BaseMapper
         // Change deprecated inline action "view" to "show"
         if ($name == '_action' && $type == 'actions') {
             if (isset($fieldDescriptionOptions['actions']['view'])) {
-                @trigger_error('Inline action "view" is deprecated since version 2.2.4 and will be removed in 3.0. Use inline action "show" instead.', E_USER_DEPRECATED);
+                @trigger_error('Inline action "view" is deprecated since version 2.2.4 and will be removed in 4.0. Use inline action "show" instead.', E_USER_DEPRECATED);
 
                 $fieldDescriptionOptions['actions']['show'] = $fieldDescriptionOptions['actions']['view'];
 

+ 1 - 1
Resources/doc/cookbook/recipe_bootlint.rst

@@ -2,7 +2,7 @@ Bootlint
 ========
 
 The admin comes with `Bootlint`_ integration
-since version 2.4.0. Bootlint is an HTML linter for Bootstrap projects.
+since version 3.0. Bootlint is an HTML linter for Bootstrap projects.
 
 You should use it when you want add some contributions on Sonata UI to check
 the eventual Twitter Bootstrap conventions' mistakes.

+ 1 - 1
Resources/doc/cookbook/recipe_customizing_a_mosaic_list.rst

@@ -1,7 +1,7 @@
 Customizing a mosaic list
 =========================
 
-Since version 2.4, the AdminBundle now include a mosaic list mode in order to have a more visual representation.
+Since version 3.0, the AdminBundle now include a mosaic list mode in order to have a more visual representation.
 
 .. figure:: ../images/list_mosaic_default.png
    :align: center

+ 2 - 2
Resources/public/Admin.js

@@ -138,10 +138,10 @@ var Admin = {
     },
 
     /**
-     * @deprecated in version 2.4
+     * @deprecated in version 3.0
      */
     add_pretty_errors: function() {
-        console.warn('Admin.add_pretty_errors() was deprecated in version 2.4');
+        console.warn('Admin.add_pretty_errors() was deprecated in version 3.0');
     },
 
     stopEvent: function(event) {

+ 4 - 4
Util/AdminObjectAclData.php

@@ -186,11 +186,11 @@ class AdminObjectAclData
      *
      * @return AdminObjectAclData
      *
-     * @deprecated Deprecated since version 2.4. Use setAclUsersForm() instead.
+     * @deprecated Deprecated since version 3.0. Use setAclUsersForm() instead.
      */
     public function setForm(Form $form)
     {
-        trigger_error('setForm() is deprecated since version 2.4. Use setAclUsersForm() instead.', E_USER_DEPRECATED);
+        trigger_error('setForm() is deprecated since version 3.0. Use setAclUsersForm() instead.', E_USER_DEPRECATED);
 
         return $this->setAclUsersForm($form);
     }
@@ -200,11 +200,11 @@ class AdminObjectAclData
      *
      * @return Form
      *
-     * @deprecated Deprecated since version 2.4. Use getAclUsersForm() instead.
+     * @deprecated Deprecated since version 3.0. Use getAclUsersForm() instead.
      */
     public function getForm()
     {
-        trigger_error('getForm() is deprecated since version 2.4. Use getAclUsersForm() instead.', E_USER_DEPRECATED);
+        trigger_error('getForm() is deprecated since version 3.0. Use getAclUsersForm() instead.', E_USER_DEPRECATED);
 
         return $this->getAclUsersForm();
     }

+ 4 - 4
Util/AdminObjectAclManipulator.php

@@ -68,11 +68,11 @@ class AdminObjectAclManipulator
      *
      * @return Form
      *
-     * @deprecated Deprecated since version 2.4. Use createAclUsersForm() instead.
+     * @deprecated Deprecated since version 3.0. Use createAclUsersForm() instead.
      */
     public function createForm(AdminObjectAclData $data)
     {
-        trigger_error('createForm() is deprecated since version 2.4. Use createAclUsersForm() instead.', E_USER_DEPRECATED);
+        trigger_error('createForm() is deprecated since version 3.0. Use createAclUsersForm() instead.', E_USER_DEPRECATED);
 
         return $this->createAclUsersForm($data);
     }
@@ -142,11 +142,11 @@ class AdminObjectAclManipulator
      *
      * @param AdminObjectAclData $data
      *
-     * @deprecated Deprecated since version 2.4. Use updateAclUsers() instead.
+     * @deprecated Deprecated since version 3.0. Use updateAclUsers() instead.
      */
     public function updateAcl(AdminObjectAclData $data)
     {
-        trigger_error('updateAcl() is deprecated since version 2.4. Use updateAclUsers() instead.', E_USER_DEPRECATED);
+        trigger_error('updateAcl() is deprecated since version 3.0. Use updateAclUsers() instead.', E_USER_DEPRECATED);
 
         $this->updateAclUsers($data);
     }