Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit d50e92c

Browse files
committed
added new action hook
1 parent f5252b9 commit d50e92c

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.1.2 - 2018-04-18
4+
5+
* Added `after-loading-{complement_name}-{complement_type}` action hook.
6+
37
## 1.1.1 - 2018-02-22
48

59
* Unit tests supported by `PHPUnit` were added.

README-ES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Ejecutar todas las pruebas anteriores:
7676
- [ ] Agregar documentación para el gancho de acción: `module-load`.
7777
- [ ] Agregar documentación para el gancho de acción: `plugin-load`.
7878
- [ ] Agregar documentación para el gancho de acción: `template-load`.
79+
- [ ] Agregar documentación para el gancho de acción: `after-loading-{complement_name}-{complement_type}`.
7980
- [ ] Agregar documentación para los diferentes tipos soportados por Eliasis Complement y compatibles con Composer Installers.
8081

8182
## Contribuir

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Run all previous tests:
7878
- [ ] Add documentation for `module-load` action hook.
7979
- [ ] Add documentation for `plugin-load` action hook.
8080
- [ ] Add documentation for `template-load` action hook.
81+
- [ ] Add documentation for `after-loading-{complement_name}-{complement_type}` action hook.
8182
- [ ] Add documentation for the different types supported by Eliasis Complement and compatible with Composer Installers.
8283

8384
## Contribute

src/Traits/ComplementAction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ private function doActions($action)
142142

143143
Hook::getInstance(App::getCurrentID());
144144
Hook::doAction($type . '-load');
145+
Hook::doAction('after-loading-' . $this->complement['slug'] . '-' . $type);
145146

146147
if (in_array($action, self::$hooks, true)) {
147148
$this->doAction($action);

0 commit comments

Comments
 (0)