All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Changed
Shortcode::prepare_context()
to accept a second$atts
argument.
0.4.3 - 2019-01-17
- Added
Shortcode::prepare_context( array $context ): array
to allow for easy context manipulation in extending classes.
0.4.2 - 2019-01-05
- Added
Shortcode::with_injector()
method to allow for the use of an external injector.
- Changed the way
$context
is handled to make it easier to modify from external code, especially a DI.
0.4.1 - 2019-01-05
- Added
Shortcode::add_context()
method.
0.4.0 - 2019-01-04
- Switched to PHPUnit v6+ and add basic tests.
- Uses
brightnucleus/view
for rendering shortcode views.
- Add missing returns.
0.3.2 - 2017-06-03
- Added information about the caught exception when instantiation failed.
0.3.1 - 2016-11-12
- Changed license to MIT.
- Fixed bug with class instantiation.
0.3.0 - 2016-11-12
- The custom class keys in the Config can now take either fully qualified class name or a callable that acts as a factory.
- Update Composer dependencies.
0.2.19 - 2016-08-11
- Fix broken
TemplateShortcode::render_view()
method.
0.2.18 - 2016-06-20
- Removed dependency on
beberlei/assert
package.
0.2.17 - 2016-04-18
- Forward inner shortcode
$content
to view.
0.2.16 - 2016-04-05
- Update Composer dependencies.
0.2.15 - 2016-03-26
- Switched
gamjo-template-loader
to release 1.2.0 - Fix code style issue.
0.2.14 - 2016-03-22
- Only declare
do_tag()
function if it does not exist already.
0.2.13 - 2016-03-22
- Switch
beberlei/assert
back to official branch. Issue #138 has been fixed with v2.5.
0.2.12 - 2016-03-04
- Pass
$atts
through to view so they can be used in there. Props to @GaryJones.
0.2.11 - 2016-03-04
- Switch
beberlei/assert
to own fork until #138 has been fixed.
0.2.10 - 2016-02-26
- Removed executable bit from files.
- Correctly type-hint closures.
- Added abstract method declarations to
CheckNeedTrait
to ensure that classes using it will provide the necessary methods. - Bump
brightnucleus/config
requirement to v0.2.4
0.2.9 - 2016-02-25
- Enqueueing of dependencies for a shortcode now falls back to dependencies already registered outside of
DependencyManager
. - Added
CheckNeedTrait
to deduplicateis_needed()
method.
- Corrected end-of-line characters for several files.
0.2.8 - 2016-02-25
- Use stable version of
brightnucleus/dependencies
.
0.2.7 - 2016-02-25
- Dependencies are only enqueued if their handles are included in the shortcode's "dependencies" key.
- The
ShortcodeManagerInterface
now reusesRegisterable
.
0.2.6 - 2016-02-24
gamajo/TemplateLoader
is being used in a newTemplatedShortcode
class to let themes override the shortcode's views.
- Let
is_needed
default totrue
so that it can be omited in most cases in the config.
0.2.5 - 2016-02-22
- Use shortcode tag getter method to access tag in
Shortcode::do_this()
method. - Docblock tweaks.
0.2.4 - 2016-02-22
- Added
ShortcodeManagerInterface
to decouple the implementation from the software that uses it. - Added
do_tag()
function to execute shortcode tags directly. Works with external shortcodes too. - Added
ShortcodeManagerInterface::do_tag()
method as a convenience access todo_tag()
function. - Added
ShortcodeInterface::do_this()
method as a convenience access todo_tag()
function.
init_shortcodes()
is now protected instead of public.
0.2.3 - 2016-02-18
ShortcodeManager
now properly manages passing$context
information to its shortcodes.
- Docblock fixes for
ShortcodeManager::__construct()
.
0.2.2 - 2016-02-18
DependencyManager
is now optional and you can pass innull
or omit the argument completely.
0.2.1 - 2016-02-18
- Make shortcodes work by fixing the config routing.
- Make shortcode UI work by fixing the config routing.
- Let array_walk always work with references.
0.2.0 - 2016-02-18
- Switched to v0.2+ for both
brightnucleus/config
&brightnucleus/dependencies
. - Removed
$config_key
from constructor and fromprocessConfig()
.
0.1.2 - 2016-02-17
- Tweak precommit script.
- Updated copyright dates.
- Several typehint tweaks.
0.1.1 - 2016-02-17
- Fixed badges in readme.
- Fixed changelog.
0.1.0 - 2016-02-17
- Initial release to GitHub.