Registers an aspect in the system.
public static register ( string | array | Closur\Closure $name, $aspect = null ) : string | null | ||
$name | string | array | Closur\Closure | The aspect name identifier, the aspects array or the aspect closure. |
Résultat | string | null | The registered aspect name identifier or `null` for multiple registration. |