Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6c5d9de
remove Engine @template
fadrian06 Aug 14, 2026
12607d9
rename Psr\Container\ContainerInterface -> Container
fadrian06 Aug 14, 2026
ae735c1
remove Dispatcher properties redundants explanations
fadrian06 Aug 14, 2026
8a4818c
improve typehint of keys before and after inside all events in the Di…
fadrian06 Aug 14, 2026
0b0737f
remove $this of return type, it's incompatible with self return type
fadrian06 Aug 14, 2026
988c64e
rename $containerInterfaceNS -> $containerFQCN and extract InvalidArg…
fadrian06 Aug 14, 2026
5c89341
clarify Dispatcher@run parameters and allows to throw errors inside e…
fadrian06 Aug 14, 2026
188f147
invert Dispatcher@setContainerHandler conditional and remove $contain…
fadrian06 Aug 14, 2026
7beabae
improve Dispatcher description to reflect its responsibility for disp…
fadrian06 Aug 15, 2026
1ae2baf
deprecate Dispatcher events property
fadrian06 Aug 15, 2026
318852b
deprecate Dispatcher filters property
fadrian06 Aug 15, 2026
7379be0
simplify Dispatcher events values typehint
fadrian06 Aug 15, 2026
bf3f86d
reuse Dispatcher@get in Dispatcher@has
fadrian06 Aug 15, 2026
bb6932e
throw OutOfBoundsException instead of Exception when event name hasn'…
fadrian06 Aug 15, 2026
2682e32
add FilteredCallable to replace Dispatcher events to named callables …
fadrian06 Aug 15, 2026
5ea5d5b
add Dispatcher namedFilteredCallables property
fadrian06 Aug 15, 2026
2673435
update before and filters signature
fadrian06 Aug 15, 2026
2d772f3
update Dispatcher description
fadrian06 Aug 15, 2026
80705ec
update Dispatcher@run, set, get, has, hook, clear and reset to use th…
fadrian06 Aug 15, 2026
b0203d8
deprecate Dispatcher@runPreFilters, runEvent, runPostFilters and filter.
fadrian06 Aug 15, 2026
ddb5762
add default template values in FilteredCallable
fadrian06 Aug 15, 2026
7405244
extract Dispatcher::CALLABLE_STRING_OPERATORS
fadrian06 Aug 16, 2026
35a6bba
update Dispatcher@fixOutputBuffering description
fadrian06 Aug 16, 2026
4afb553
simplify Dispatcher@mustUseContainer
fadrian06 Aug 16, 2026
cbc1cb3
refactor Dispatcher@execute
fadrian06 Aug 16, 2026
27598bc
ignore spacing after control structures open braces
fadrian06 Aug 16, 2026
9e08573
rename Dispatcher namedFilteredCallables -> namedCallables
fadrian06 Aug 16, 2026
6afe25d
simplify object creation without container
fadrian06 Aug 16, 2026
05831b3
use always global namespace prefix
fadrian06 Aug 16, 2026
bdd5bdc
fix Dispatcher@get return type
fadrian06 Aug 16, 2026
e48b976
fix phpstan message about Dispatcher@get return type
fadrian06 Aug 16, 2026
cfa87be
remove unneccesary references
fadrian06 Aug 16, 2026
8e168e6
remove unused $container
fadrian06 Aug 16, 2026
17ed787
add more @template
fadrian06 Aug 16, 2026
7482506
remove EngineTemplate
fadrian06 Aug 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions flight/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
* @method void lastModified(int $time)
* @method void download(string $filePath)
*
* @phpstan-template EngineTemplate of object
* @phpstan-method void registerContainerHandler(ContainerInterface|callable(class-string<EngineTemplate> $id, array<int|string, mixed> $params): ?EngineTemplate $containerHandler)
* @phpstan-method void registerContainerHandler(ContainerInterface|callable(class-string<object> $id, array<int|string, mixed> $params): ?object $containerHandler)
* @phpstan-method Route route(string $pattern, callable|string|array{0: class-string, 1: string} $callback, bool $pass_route = false, string $alias = '')
Comment thread
fadrian06 marked this conversation as resolved.
* @phpstan-method void group(string $pattern, callable $callback, (class-string|callable|array{0: class-string, 1: string})[] $group_middlewares = [])
* @phpstan-method Route post(string $pattern, callable|string|array{0: class-string, 1: string} $callback, bool $pass_route = false, string $alias = '')
Expand Down Expand Up @@ -118,7 +117,7 @@ class Engine
/** Class loader. */
protected Loader $loader;

/** @var Dispatcher<EngineTemplate> Method and class dispatcher. */
/** Method and class dispatcher. */
protected Dispatcher $dispatcher;

/** Event dispatcher. */
Expand Down
Loading