Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abb1bf1

Browse files
committed
Remove more deprecations
1 parent ce90226 commit abb1bf1

11 files changed

Lines changed: 12 additions & 151 deletions

File tree

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
## ⚠️ WARNING: This is the 5.x branch of this bundle, which is still in development. You probably want to check out the [4.x branch](https://github.com/EasyCorp/EasyAdminBundle/tree/4.x)
2-
31
<p align="center"><a href="https://github.com/EasyCorp/EasyAdminBundle">
42
<img src="./assets/images/easyadmin-logo.svg" alt="EasyAdmin Logo" width="280">
53
</a></p>
@@ -81,8 +79,8 @@ Visit `/admin` in your browser. That's it!
8179

8280
| Version / Repository Branch | Symfony Compatibility | PHP Compatibility | Status | Docs
8381
| --------------------------- | ----------------------------- | ----------------- | -------------------- | ---
84-
| `5.x` | `6.4`, `7.x` and `8.x` | `8.1` or higher | In development | [Read Docs](https://symfony.com/bundles/EasyAdminBundle/5.x/index.html)
85-
| `4.x` | `5.4`, `6.x`, `7.x` and `8.x` | `8.1` or higher | New features and bug fixes | [Read Docs](https://symfony.com/bundles/EasyAdminBundle/4.x/index.html)
82+
| `5.x` | `6.4`, `7.x` and `8.x` | `8.2` or higher | Stable version | [Read Docs](https://symfony.com/bundles/EasyAdminBundle/5.x/index.html)
83+
| `4.x` | `5.4`, `6.x`, `7.x` and `8.x` | `8.1` or higher | Bug fixes only | [Read Docs](https://symfony.com/bundles/EasyAdminBundle/4.x/index.html)
8684
| `3.x` | `4.4`, and `5.x` | `7.2.5` or higher | No longer maintained | [Read Docs](https://symfony.com/bundles/EasyAdminBundle/3.x/index.html)
8785
| `2.x` | `4.x`, and `5.x` | `7.1.3` or higher | No longer maintained | [Read Docs](https://symfony.com/bundles/EasyAdminBundle/2.x/index.html)
8886
| `1.x` | `2.x`, `3.x` and `4.x` | `5.3.0` or higher | No longer maintained | -

assets/css/easyadmin-theme/datalists.css

Lines changed: 0 additions & 59 deletions
This file was deleted.

doc/actions.rst

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,50 +1101,8 @@ of the stats of all customers and includes a link to the detailed stats of each
11011101
11021102
The Twig template extends the :ref:`content page template <content_page_template>`
11031103
provided by EasyAdmin to reuse the backend design. The rest of the template
1104-
is standard Twig code, including the use of the Symfony's ``path()`` function t
1105-
generate the URL for the ``admin_business_stats_customer`` admin route.
1106-
1107-
.. _generating-urls-to-symfony-actions-integrated-in-easyadmin:
1108-
1109-
Legacy URL Generation for Symfony Actions
1110-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1111-
1112-
In EasyAdmin versions prior to 4.25.0, you couldn't define custom admin routes
1113-
for your actions. This meant that you couldn't use Symfony features related to
1114-
routing, such as the ``UrlGenerator`` service or the ``path()`` Twig function
1115-
to generate URLs.
1116-
1117-
In those cases, you had to use the EasyAdmin ``AdminUrlGenerator`` to generate
1118-
admin URLs pointing to your custom actions, as follows::
1119-
1120-
// src/Controller/SomeController.php
1121-
namespace App\Controller;
1122-
1123-
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator;
1124-
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1125-
1126-
class SomeController extends AbstractController
1127-
{
1128-
private $adminUrlGenerator;
1129-
1130-
public function __construct(AdminUrlGenerator $adminUrlGenerator)
1131-
{
1132-
$this->adminUrlGenerator = $adminUrlGenerator;
1133-
}
1134-
1135-
public function someMethod()
1136-
{
1137-
$url = $this->adminUrlGenerator->setRoute('admin_business_stats_customer', [
1138-
'id' => $this->getUser()->getId(),
1139-
])->generateUrl();
1140-
1141-
// ...
1142-
}
1143-
}
1144-
1145-
This is no longer needed in modern EasyAdmin versions and is now a discouraged
1146-
practice that you should avoid in your applications. Instead, see the previous
1147-
section about :ref:`how to integrate custom Symfony controllers into EasyAdmin dashboards <actions-integrating-symfony>`.
1104+
is standard Twig code, including the use of the Symfony's ``path()`` function to
1105+
generate the URL for the ``admin_business_stats_customer`` admin route.
11481106

11491107
Actions Extensions
11501108
------------------

doc/design.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ creating new Twig templates.
2424
Changing the Backend Icons
2525
--------------------------
2626

27-
.. versionadded:: 4.16
28-
29-
The option to configure the icon set was introduced in EasyAdmin 4.16.0.
30-
3127
By default, EasyAdmin uses `FontAwesome icons`_ both for the built-in interface
3228
icons and any custom icons that you add to menu items, fields, form tabs, etc.
3329
The full FontAwesome icon set (~2,000 icons) is already included in EasyAdmin,

doc/events.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ everything is defined in PHP. It is usually easier to customize the backend by
1010
overriding PHP classes and methods and by calling your own services. Events are
1111
still available if you want to use them.
1212

13-
All events are dispatched as objects rather than string event names (as
14-
recommended since Symfony 4.3). They live under the
15-
``EasyCorp\Bundle\EasyAdminBundle\Event\`` namespace:
13+
All events are dispatched as objects rather than string event names. They live
14+
under the ``EasyCorp\Bundle\EasyAdminBundle\Event\`` namespace:
1615

1716
* Events related to Doctrine entities:
1817

doc/fields.rst

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -340,17 +340,9 @@ design of this tab:
340340
{# ... #}
341341
{% endblock _MyEntity_ea_form_tab_close_contact_row %}
342342

343-
.. versionadded:: 4.20
344-
345-
The ``propertySuffix`` argument was introduced in EasyAdmin 4.20.0.
346-
347343
Form Columns
348344
~~~~~~~~~~~~
349345

350-
.. versionadded:: 4.8.0
351-
352-
Form columns were introduced in EasyAdmin 4.8.0.
353-
354346
Before using this option, you must be familiar with the `Bootstrap grid system`_,
355347
which divides each row into 12 same-width columns, and the `Bootstrap breakpoints`_,
356348
which are ``xs`` (device width < 576px), ``sm`` (>= 576px), ``md`` (>= 768px),
@@ -483,18 +475,9 @@ design of this column:
483475
{# ... #}
484476
{% endblock _MyEntity_ea_form_column_close_main_row %}
485477

486-
.. versionadded:: 4.20
487-
488-
The ``propertySuffix`` argument was introduced in EasyAdmin 4.20.0.
489-
490478
Form Fieldsets
491479
~~~~~~~~~~~~~~
492480

493-
.. versionadded:: 4.8.0
494-
495-
Form fieldsets were introduced in EasyAdmin 4.8.0. In previous versions,
496-
this feature was called "Form Panels".
497-
498481
In pages where you display lots of fields, you can divide them in groups using
499482
fieldsets. This is how they look like:
500483

@@ -581,10 +564,6 @@ design of this fieldset:
581564
{# ... #}
582565
{% endblock _MyEntity_ea_form_fieldset_close_contact_row %}
583566

584-
.. versionadded:: 4.20
585-
586-
The ``propertySuffix`` argument was introduced in EasyAdmin 4.20.0.
587-
588567
Form Rows
589568
~~~~~~~~~
590569

@@ -704,10 +683,6 @@ design of this row:
704683
{# ... #}
705684
{% endblock _MyEntity_ea_form_row_close_main_row %}
706685

707-
.. versionadded:: 4.20
708-
709-
The ``propertySuffix`` argument was introduced in EasyAdmin 4.20.0.
710-
711686
.. _fields_reference:
712687

713688
Field Types

doc/fields/CodeEditorField.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ decrease the indent size::
8282
yield CodeEditorField::new('...')->setTabSize(8);
8383

8484
.. _`CodeMirror editor`: https://github.com/codemirror/CodeMirror
85-
.. _`CodeEditorType`: https://github.com/EasyCorp/EasyAdminBundle/blob/4.x/src/Form/Type/CodeEditorType.php
85+
.. _`CodeEditorType`: https://github.com/EasyCorp/EasyAdminBundle/blob/5.x/src/Form/Type/CodeEditorType.php
8686
.. _`TextareaType`: https://symfony.com/doc/current/reference/forms/types/textarea.html

doc/fields/CountryField.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ Basic Information
3232
3333
<twig:ea:Flag countryCode="CR" height="18"/>
3434
35-
.. versionadded:: 4.20.0
36-
37-
The `<twig:ea:Flag/>` component was introduced in EasyAdmin 4.20.0.
38-
3935
Options
4036
-------
4137

doc/fields/TextEditorField.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ Check out the `src/trix/config/ folder`_ at Trix editor repository to learn
6666
about all the available configuration options.
6767

6868
.. _`Trix editor`: https://github.com/basecamp/trix
69-
.. _`TextEditorType`: https://github.com/EasyCorp/EasyAdminBundle/blob/4.x/src/Form/Type/TextEditorType.php
69+
.. _`TextEditorType`: https://github.com/EasyCorp/EasyAdminBundle/blob/5.x/src/Form/Type/TextEditorType.php
7070
.. _`TextareaType`: https://symfony.com/doc/current/reference/forms/types/textarea.html
7171
.. _`src/trix/config/ folder`: https://github.com/basecamp/trix/tree/main/src/trix/config

doc/security.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,6 @@ permissions to see some items:
229229
Restricting Access with Expressions
230230
-----------------------------------
231231

232-
.. versionadded:: 4.9.0
233-
234-
The Expressions support was introduced in EasyAdmin 4.9.0.
235-
236232
The `Symfony ExpressionLanguage component`_ allows you to define complex configuration
237233
logic using simple expressions. In EasyAdmin, all ``setPermission()`` methods
238234
allow you to pass not only a string with some security role name (e.g. ``ROLE_ADMIN``)

0 commit comments

Comments
 (0)