Skip to content

v3.0.0

Compare
Choose a tag to compare
@gmazzap gmazzap released this 07 Feb 11:54
· 19 commits to master since this release

Changed

  • Classes, interfaces, and traits are renamed:
    • Branch\BranchInterface > Branch\Branch
    • Finder\CallbackTemplateFinder > Finder\ByCallback
    • Finder\FoldersTemplateFinder > Finder\ByFolders
    • Finder\SubfolderTemplateFinder > Finder\BySubfolder
    • Finder\LocalizedTemplateFinder > Finder\Localized
    • Finder\FindFirstTemplateTrait > Finder\FindFirstTrait
    • Finder\TemplateFinderInterface > Finder\TemplateFinder
    • Loader\AggregateTemplateLoaderInterface > Loader\Aggregate
    • Loader\CascadeAggregateTemplateLoader > Loader\Cascade
    • Loader\ExtensionMapTemplateLoader > Loader\ExtensionMap
    • Loader\FileRequireLoader > Loader\FileRequire
    • Loader\TemplateLoaderInterface > Loader\Loader
  • All methods use type declaration for parameters and return values
  • FileExtensionPredicate constructor changed signature. First param type was (undeclared) string|string[] $extensions now is (declared) string ...$extensions

Deprecared

  • Hierarchy::getHierarchy(), replaced by Hierarchy::hierarchy()
  • Hierarchy::getTemplates(), replaced by Hierarchy::templates()

Added

  • Hierarchy::hierarchy()
  • Hierarchy::templates()
  • Support for "composed" file extensions like .html.php
  • GitHub action (replacing Travis) to run:
    • unit tests executed in PHP 7.1 to PHP 8.2
    • static analysys via Psalm
    • PHPCS checks (inluding PHPCompatibility)

Removed

  • QueryTemplateInterface is removed and not replaced by anything