Changelog

This is the changelog for infomaker/everyware-twig

Current version: 1.2.0

[Unreleased]

1.2.0 - 2022-04-08

Fixed

  • Removed call to DeprecationHandler:listen(), see below deprecation notice for more info.

Deprecated

  • DeprecationHandler:listen(). This method registers an error handler that hijacks all error types, causing unwanted behaviour.

1.1.1 - 2022-02-10

Added

  • The support for PHP v8 has been added to composer.json.

1.1.0 - 2021-02-08

Added

  • New Twig filter:

    • spacey (protects whitespace between tags, so the spaceless filter can't remove them)

Fixed

  • Make sure that multiple registrations of Wp-functions do not break Twig. We will ignore any registration of a global function that has already been registered.

1.0.0 - 2020-06-04

Added

  • We've introduce a deprecation handler that will trigger php errors to let you know if your templates contains deprecated features.

Updated

Changed

  • Removed Pre storing of registered paths, functions, filters and globals against ViewSetup. This removes the requirement to initiate Twig before usage.

Fixed

  • Fixed the way duplicate registrations of functions and filters overrides the previous one.

  • Fixed the way template paths where registered. This may cause older implementations to trigger errors when templates try to include an unknown file.

Deprecations

  • Registered functionality like functions and filters will have to be prefixed from now on.

  • ViewSetup can't be initiated anymore.

  • Read more about Deprecated Features in Twig v2.x and v3.x

0.7.1 - 2020-03-12

Fixed

  • Enable Template debugging in dev environments

0.7.0 - 2020-03-03

Added

  • Added support for extending Twig environment

  • Added support for extending Twig environment with Twig Extensions

  • Twig deprecation handling to warn about deprecated features in Twig.

  • New Twig filters:

    • class_string (can convert arrays to string suited for html class-attribute )

    • trim_array (filters an array to remove "unwanted" values like false, null empty array/string, strings that would be considered empty, arrays that contains "unwanted" values)

  • New Twig Operator:

    • contains (can confirm the existence of words or sentence in a string)

Changed

  • Updated Twig version to 2.12.5

Deprecated

  • Dropped support to set custom Template Loader

  • Deprecated support to excluding directories when registering templates

  • Deprecated use of EveryTwig class.

0.6.0 - 2019-08-22

Fixed

  • Start using the TwigEnvironment instead of the old Override-class

  • Switch deprecated classes.

  • Release script validations and documentation automation fix

  • Hash cache key for the template paths cache

  • Add expire time to the template paths cache

Changed

  • Update way of extending Twig environment with globals, filters and functions

  • Moved default php functions to the class meant for this

  • Update names of Twig Classes

  • Update build script

Removed

  • Removed old broken overriding class of TwigEnvironment to instead use the one provided from Twig.

Added

  • Added documentation to maintain on Gitbook

0.5.2 - 2019-05-08

Changed

  • Composer constraints

  • Update build flow

0.5.1 - 2019-04-02

Changed

  • Updated twig version to ^2.*

0.5.0 - 2019-02-13

Changed

  • Twig_Environment now only has private properties, we now access those thru methods instead. E.x getCache instead of this->cache.

  • Environment now return Twig_TemplateInterface

  • Changed functions and filters to return Twig_Function/Filter instead of Twig_SimpleFunction/Filter.

Removed

  • Removed Property cacheTime and setCacheTime from FilesystemLoader

  • Removed setLoaderCache from ViewSetup

Added

  • Added unit and feature tests

0.4.0 - 2019-02-7

Removed

  • Removed possibility to instantiate Fileloader and EveryTwig more than once.

Changed

  • ViewSetup is now a singleton

  • ViewSetup should no longer be extended

  • Code refactoring of View, ViewSetup, FilesystemLoader and EveryTwig classes.

  • Added Unit and feature tests

Fixed

  • Added support for twig debug extension

0.3.3 - 2019-01-30

Fixed

  • use path to generate key when caching paths to loader for better handling when using same namespace with multiple paths

0.3.2 - 2019-01-25

Removed

  • Removed unnecessary files from getting added to composer package.

  • Such as phpunit & README

0.3.1 - 2019-01-10

Fixed

  • Fix broken PathFilter

0.3.0 - 2019-01-10

Changed

  • Update usability for adding functions, filters, paths and globals to twig before initiation.

Removed

  • Removed Unused classes for filesystem loading and filtering of paths

Fixed

  • minor fixes and optimizations

  • add cachetime for loaded paths according to environment

0.2.0 - 2018-12-19

Changed

  • Updated to correct license

  • 'Fixed package deployment. To not include unnecessary files.

0.1.0 - 2018-12-18

Added

  • 'Added this file and boilerplate and markup example for the future

Last updated