Skip to content

Releases: josantonius/php-hook

1.0.4

02 Jun 02:17
Compare
Choose a tag to compare

What's Changed

Return was added in the doAction method. Useful for receiving actions that are only executed once.

  • Deleted $_hooks property.

  • Deleted Josantonius\Hook\Hook::setHook() method.

  • Deleted Josantonius\Hook\Hook::addHook() method.

  • Deleted Josantonius\Hook\Hook::resetHook() method.

  • Deleted Josantonius\Hook\Hook::run() method.

  • Deleted Josantonius\Hook\Hook::collectHook() method.

Full Changelog: 1.0.3...1.0.4

1.0.3

31 May 09:51
Compare
Choose a tag to compare

What's Changed

These deprecated methods will be removed as of version 1.0.4:

  • Deprecated $_hooks property.

  • Deprecated Josantonius\Hook\Hook::setHook() method.

  • Deprecated Josantonius\Hook\Hook::addHook() method.

  • Deprecated Josantonius\Hook\Hook::resetHook() method.

  • Deprecated Josantonius\Hook\Hook::run() method.

  • Deprecated Josantonius\Hook\Hook::collectHook() method.

  • Added Josantonius\Hook\Hook::addAction() method.

  • Added Josantonius\Hook\Hook::addActions() method.

  • Added Josantonius\Hook\Hook::doAction() method.

  • Added Josantonius\Hook\Hook::_runAction() method.

  • Added Josantonius\Hook\Hook::_getActions() method.

  • Added Josantonius\Hook\Hook::_getArguments() method.

  • Added Josantonius\Hook\Hook::current() method.

  • Deleted Josantonius\Hook\Tests\HookTest::testAddHooks() method.

  • Deleted Josantonius\Hook\Tests\HookTest::testExecuteHooks() method.

  • Deleted Josantonius\Hook\Tests\HookTest::testSetOneHook() method.

  • Deleted Josantonius\Hook\Tests\HookTest::testSetMultipleHooks() method

  • Added Josantonius\Hook\Tests\HookTest::testAddHooksMethod() method.

  • Added Josantonius\Hook\Tests\HookTest::testAddHooksArray() method.

  • Added Josantonius\Hook\Tests\HookTest::testAddHooksInstance() method.

  • Added Josantonius\Hook\Tests\HookTest::testCurrentHook() method.

  • Added $callbacks property.

  • Added $actions property.

  • Added $current property.

Full Changelog: 1.0.2...1.0.3

1.0.2

19 May 23:42
Compare
Choose a tag to compare

What's Changed

  • Added option to remove custom function to hook.

  • Added Josantonius\Hook\Hook::resetHook() method.

Full Changelog: 1.0.1...1.0.2

1.0.1

18 Mar 03:56
Compare
Choose a tag to compare

What's Changed

  • Some files were excluded from download and comments and readme files were updated.

Full Changelog: 1.0.0...1.0.1

1.0.0

16 Mar 22:49
Compare
Choose a tag to compare

What's Changed

  • Added Josantonius\Hook\Tests\HookTest class.
  • Added Josantonius\Hook\Tests\HookTest::testAddHooks() method.
  • Added Josantonius\Hook\Tests\HookTest::testSetSingletonName() method.
  • Added Josantonius\Hook\Tests\HookTest::testExecuteHooks() method.
  • Added Josantonius\Hook\Tests\HookTest::testSetOneHook() method.
  • Added Josantonius\Hook\Tests\HookTest::testSetMultipleHooks() method.
  • Added Josantonius\Hook\Exception\HookException class.
  • Added Josantonius\Hook\Exception\Exceptions abstract class.
  • Added Josantonius\Hook\Exception\HookException->__construct() method.
  • Added Josantonius\Hook\Hook class.
  • Added Josantonius\Hook\Hook::getInstance() method.
  • Added Josantonius\Hook\Hook::setSingletonName() method.
  • Added Josantonius\Hook\Hook::setHook() method.
  • Added Josantonius\Hook\Hook::addHook() method.
  • Added Josantonius\Hook\Hook::run() method.
  • Added Josantonius\Hook\Hook->collectHook() method.

Full Changelog: https://github.com/josantonius/php-hook/commits/1.0.0