diff --git a/CHANGELOG.md b/CHANGELOG.md index 567288a3..29c127dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.2.3] - 2019-12-05 + +### Changes +* Updated twig dependencies +* Fix a BC break introduced in `3.2.2` (#142) + + ## [3.2.2] - 2019-12-03 ### Changes diff --git a/src/DoctrineAuditBundle/Resources/views/Audit/bootstrap.html.twig b/src/DoctrineAuditBundle/Resources/views/Audit/bootstrap.html.twig new file mode 100644 index 00000000..30f1a4a4 --- /dev/null +++ b/src/DoctrineAuditBundle/Resources/views/Audit/bootstrap.html.twig @@ -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 %} diff --git a/src/DoctrineAuditBundle/Resources/views/Audit/helper.html.twig b/src/DoctrineAuditBundle/Resources/views/Audit/helper.html.twig new file mode 100644 index 00000000..1db4265b --- /dev/null +++ b/src/DoctrineAuditBundle/Resources/views/Audit/helper.html.twig @@ -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 %}