This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
Releases: dwoo-project/dwoo
Releases · dwoo-project/dwoo
1.3.7
1.3.6
Changed
- In
setCacheDir
andsetCompileDir
methods, create directory path if not exist if possible. - Rename
Compiler::getDwoo()
toCompiler::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
Added
- Add new constant test from file
testShortClassConstants
.
Changed
- Update tests, add new test
testClassConstants
. - Update
Loader::rebuildClassPathCache
method, usingDirectoryIterator
class instead ofglob
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
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))
toforeach ($args as $key => $v)
.
Fixed
- Fixing issue #58.
- Update method
Dwoo\Template\File::getCompiledFilename
.
1.3.3
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
Added
- Add new tests:
CoreTest::testSetters
,CoreTest::testGlobal
. - Add new methods:
Core::setTemplateDir
andCore::getTemplateDir
. - Add new alias
js
for javascript available format in escape plugin. - Add new methods
Core::addGlobal
andCore::getGlobals
.
Changed
- Properties
Core::$data
andCore::$globals
are now protected.
Fixed
- Fix PHPUnit test:
CompilerTest::testConstants
.
1.3.1
- Now fully compatible with PHP7.0 and PHP7.1.
Changed
- Rename class
Dwoo\Template\String
toDwoo\Template\Str
.
Fixed
- Fixing all adapters.
- Fixing constant calls from classes with namespaces.
1.3.0
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
toDwoo/Plugins
. - Processor
smarty_compat
becomePluginSmartyCompatible
. - 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 nowPluginAssignCompile
). - Helper
Dwoo_Plugin_array_compile
move toDwoo\Plugins\Helpers\PluginArrayCompile
.
Removed
- Delete
Dwoo
class, now you need to use:new Dwoo\Core()
. - Delete method
Dwoo\Core::output()
, use nowecho Dwoo\Core::get()
method. - Last parameter
$_output
ofDwoo\Core::get()
method has been removed, useecho Dwoo\Core::get()
instead.
1.2.3
- 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.