File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " saschaende/laravel-hookable" ,
3- "version" : " 1.0.3 " ,
3+ "version" : " 1.0.4 " ,
44 "description" : " The WordPress filter/action system in Laravel" ,
55 "keywords" : [
66 " laravel" ,
3535 "laravel" : {
3636 "providers" : [
3737 " SaschaEnde\\ Hookable\\ HookableServiceProvider"
38- ]
39- },
40- "aliases " : {
41- "Hookable" : " SaschaEnde \\ Hookable \\ Facades \\ Hookable "
42- }
38+ ],
39+ "aliases" : {
40+ "Hookable " : " SaschaEnde \\ Hookable \\ Facades \\ Hookable "
41+ }
42+ }
4343 },
4444 "minimum-stability" : " stable" ,
4545 "prefer-stable" : true
Original file line number Diff line number Diff line change 55use Illuminate \Support \Facades \Facade ;
66
77/**
8- * @see \Hookable
8+ * @method static void action(string $name, callable $callback, int $priority = 10)
9+ * @method static void filter(string $name, callable $callback, int $priority = 10)
10+ * @method static mixed applyFilters(string $name, mixed $value = null, ...$params)
11+ * @method static string renderActions(string $name, ...$params)
12+ *
13+ * @see \SaschaEnde\Hookable\Hookable
914 */
1015class Hookable extends Facade
1116{
1217 protected static function getFacadeAccessor (): string
1318 {
14- return ' hookable ' ;
19+ return \ SaschaEnde \ Hookable \Hookable::class ;
1520 }
1621}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class HookableServiceProvider extends ServiceProvider
1010 public function register ()
1111 {
1212 // Bind Hookable as a singleton
13- $ this ->app ->singleton (' hookable ' , fn () => new Hookable ());
13+ $ this ->app ->singleton (\ SaschaEnde \ Hookable \Hookable::class , fn () => new Hookable ());
1414 }
1515
1616 public function boot ()
You can’t perform that action at this time.
0 commit comments