Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Releases: dwoo-project/dwoo

1.3.7

18 Apr 14:27
30592b3
Compare
Choose a tag to compare

Fixed

  • Fix rehashing race condition (#73)
  • Support including a template that is inherited from a relative parent (#83)
  • Fix issue (#59)
  • Check for block plugins outside of Core::NAMESPACE_PLUGINS_BLOCKS (#71)
  • Replace deprecated function create_function in PHP7.2

1.3.6

27 Mar 23:30
Compare
Choose a tag to compare

Changed

  • In setCacheDir and setCompileDir methods, create directory path if not exist if possible.
  • Rename Compiler::getDwoo() to Compiler::getCore().

Fixed

  • Fix bug, using object for custom plugin and using getobjectPlugin method.
  • Fix error, getCore need to return $this->core.
  • Fix output data bug in replaceModifiers method.
  • Fix addPlugin method, add code when passing object in $callback.

1.3.5

16 Mar 18:57
Compare
Choose a tag to compare

Added

  • Add new constant test from file testShortClassConstants.

Changed

  • Update tests, add new test testClassConstants.
  • Update Loader::rebuildClassPathCache method, using DirectoryIterator class instead of glob function.

Fixed

  • Fix class BaseTests, remove cached and compiled files when calling destructor.
  • Constants error when using 2 trailing slashes, issue #63.
  • Fix parseConstKey method, replacing double \\ by single \.
  • Fix throw new exception, display on one line.

Removed

  • Remove useless else and non accessing code.

1.3.4

12 Mar 21:00
Compare
Choose a tag to compare

Added

  • Add docker-compose.yml file for unit testing only.

Changed

  • Update PHPUnit commands in tests/README.md file.
  • Ignore composer.lock file.
  • Update code while (list(, $v) = each($args)) to foreach ($args as $key => $v).

Fixed

  • Fixing issue #58.
  • Update method Dwoo\Template\File::getCompiledFilename.

1.3.3

07 Mar 16:58
Compare
Choose a tag to compare

Added

  • Add new parameter allowed_tags for strip_tags plugin.

Changed

  • All function's plugins as PHP function has been converted to PHP class, following now PSR-0 and PSR-4 standards.
  • array helper as PHP function has been converted to PHP class, following now PSR-0 and PSR-4 standards.

1.3.2

05 Jan 15:33
Compare
Choose a tag to compare

Added

  • Add new tests: CoreTest::testSetters, CoreTest::testGlobal.
  • Add new methods: Core::setTemplateDir and Core::getTemplateDir.
  • Add new alias js for javascript available format in escape plugin.
  • Add new methods Core::addGlobal and Core::getGlobals.

Changed

  • Properties Core::$data and Core::$globals are now protected.

Fixed

  • Fix PHPUnit test: CompilerTest::testConstants.

1.3.1

16 Dec 17:06
Compare
Choose a tag to compare
  • Now fully compatible with PHP7.0 and PHP7.1.

Changed

  • Rename class Dwoo\Template\String to Dwoo\Template\Str.

Fixed

  • Fixing all adapters.
  • Fixing constant calls from classes with namespaces.

1.3.0

25 Sep 14:43
Compare
Choose a tag to compare

Added

  • Add namespaces.
  • Add new PHPDoc block Copyright for each files.

Changed

  • Follows PHP Coding Standards Fixer.
  • Refactoring code, following PHP_CodeSniffer Standard.
  • Follows PSR-1: Basic Coding Standard.
  • Follows PSR-2: Cosing Style Guide.
  • Follows PSR-4: Autoloader Standard instead of PSR-0.
  • Update README examples with namespace.
  • Move all plugins from plugins/builtin to Dwoo/Plugins.
  • Processor smarty_compat become PluginSmartyCompatible.
  • All plugins functions and classes names MUST start with Plugin keyword.
  • All plugins filename MUST have the same name as the function or class.
  • Plugins name changed from underscore_case to CamelCase (e.g. Dwoo_Plugin_assign_compile is now PluginAssignCompile).
  • Helper Dwoo_Plugin_array_compile move to Dwoo\Plugins\Helpers\PluginArrayCompile.

Removed

  • Delete Dwoo class, now you need to use: new Dwoo\Core().
  • Delete method Dwoo\Core::output(), use now echo Dwoo\Core::get() method.
  • Last parameter $_output of Dwoo\Core::get() method has been removed, use echo Dwoo\Core::get() instead.

1.2.3

15 Sep 23:53
Compare
Choose a tag to compare
  • Fix some bugs
  • Fix all PHPUnit tests
  • Add new method Dwoo_Core::ClearCompiled()
  • Add new PHPDoc @author and @copyright tags.
  • Remove unreachable statements.
  • Method Dwoo\Core::output() is now deprecated, will be removed in 1.3.0.