Skip to content

Commit

Permalink
Fix a BC break introduced in 3.2.2 (see #142)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienHarper committed Dec 5, 2019
1 parent e4e22a1 commit c85ba4b
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions src/DoctrineAuditBundle/Resources/views/Audit/bootstrap.html.twig
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 src/DoctrineAuditBundle/Resources/views/Audit/helper.html.twig
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 %}

0 comments on commit c85ba4b

Please sign in to comment.