-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a BC break introduced in
3.2.2
(see #142)
- Loading branch information
1 parent
e4e22a1
commit c85ba4b
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/DoctrineAuditBundle/Resources/views/Audit/bootstrap.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% macro badge(text, type) %} | ||
{% deprecated 'The "@DHDoctrineAudit/Audit/bootstrap.html.twig" template is deprecated and will be removed in 4.0.0, use "@DHDoctrineAudit/Audit/helpers/bootstrap.html.twig" instead.' %} | ||
{% import "@DHDoctrineAudit/Audit/helpers/bootstrap.html.twig" as new_bootstrap %} | ||
{{ new_bootstrap.badge(text, type) }} | ||
{% endmacro %} | ||
|
||
{% macro text(text, type) %} | ||
{% deprecated 'The "@DHDoctrineAudit/Audit/bootstrap.html.twig" template is deprecated and will be removed in 4.0.0, use "@DHDoctrineAudit/Audit/helpers/bootstrap.html.twig" instead.' %} | ||
{% import "@DHDoctrineAudit/Audit/helpers/bootstrap.html.twig" as new_bootstrap %} | ||
{{ new_bootstrap.text(text, type) }} | ||
{% endmacro %} | ||
|
||
{% macro label_type(value) %} | ||
{% deprecated 'The "@DHDoctrineAudit/Audit/bootstrap.html.twig" template is deprecated and will be removed in 4.0.0, use "@DHDoctrineAudit/Audit/helpers/bootstrap.html.twig" instead.' %} | ||
{% import "@DHDoctrineAudit/Audit/helpers/bootstrap.html.twig" as new_bootstrap %} | ||
{{ new_bootstrap.label_type(value) }} | ||
{% endmacro %} | ||
|
||
{% macro icon_type(value) %} | ||
{% deprecated 'The "@DHDoctrineAudit/Audit/bootstrap.html.twig" template is deprecated and will be removed in 4.0.0, use "@DHDoctrineAudit/Audit/helpers/bootstrap.html.twig" instead.' %} | ||
{% import "@DHDoctrineAudit/Audit/helpers/bootstrap.html.twig" as new_bootstrap %} | ||
{{ new_bootstrap.icon_type(value) }} | ||
{% endmacro %} |
17 changes: 17 additions & 0 deletions
17
src/DoctrineAuditBundle/Resources/views/Audit/helper.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% macro dump(value, separator) %} | ||
{% deprecated 'The "@DHDoctrineAudit/Audit/helper.html.twig" template is deprecated and will be removed in 4.0.0, use "@DHDoctrineAudit/Audit/helpers/helper.html.twig" instead.' %} | ||
{% import "@DHDoctrineAudit/Audit/helpers/helper.html.twig" as new_helper %} | ||
{{ new_helper.dump(value, separator) }} | ||
{% endmacro dump %} | ||
|
||
{% macro namespaceToParam(entity) %} | ||
{% deprecated 'The "@DHDoctrineAudit/Audit/helper.html.twig" template is deprecated and will be removed in 4.0.0, use "@DHDoctrineAudit/Audit/helpers/helper.html.twig" instead.' %} | ||
{% import "@DHDoctrineAudit/Audit/helpers/helper.html.twig" as new_helper %} | ||
{{ new_helper.namespaceToParam(entity) }} | ||
{% endmacro namespaceToParam %} | ||
|
||
{% macro humanize(entity, entry) %} | ||
{% deprecated 'The "@DHDoctrineAudit/Audit/helper.html.twig" template is deprecated and will be removed in 4.0.0, use "@DHDoctrineAudit/Audit/helpers/helper.html.twig" instead.' %} | ||
{% import "@DHDoctrineAudit/Audit/helpers/helper.html.twig" as new_helper %} | ||
{{ new_helper.humanize(entity, entry) }} | ||
{% endmacro %} |