fadrian06
35a6bbabed
update Dispatcher@fixOutputBuffering description
3 days ago
fadrian06
740524490f
extract Dispatcher::CALLABLE_STRING_OPERATORS
3 days ago
fadrian06
ddb57620a0
add default template values in FilteredCallable
3 days ago
fadrian06
b0203d861c
deprecate Dispatcher@runPreFilters, runEvent, runPostFilters and filter.
...
Now filters are handled by each FilteredCallable.
3 days ago
fadrian06
80705ec158
update Dispatcher@run, set, get, has, hook, clear and reset to use the namedFilteredCallable property
3 days ago
fadrian06
2d772f3642
update Dispatcher description
3 days ago
fadrian06
2673435197
update before and filters signature
3 days ago
fadrian06
5ea5d5b8ad
add Dispatcher namedFilteredCallables property
3 days ago
fadrian06
2682e3298f
add FilteredCallable to replace Dispatcher events to named callables (self explanatory).
...
- FilteredCallable wraps a callable and helps static analyzers to check if after filters are using the callable return type as output type.
- FilteredCallable handles after filters with two parameters (deprecated) and one parameter (new required signature)
3 days ago
fadrian06
bb6932e92e
throw OutOfBoundsException instead of Exception when event name hasn't been set
3 days ago
fadrian06
bf3f86d619
reuse Dispatcher@get in Dispatcher@has
3 days ago
fadrian06
7379be00ac
simplify Dispatcher events values typehint
3 days ago
fadrian06
318852b19b
deprecate Dispatcher filters property
3 days ago
fadrian06
1ae2bafeee
deprecate Dispatcher events property
3 days ago
fadrian06
7beabae36d
improve Dispatcher description to reflect its responsibility for dispatching named callables
3 days ago
fadrian06
188f147c7d
invert Dispatcher@setContainerHandler conditional and remove $containerFQCN
5 days ago
fadrian06
5c89341428
clarify Dispatcher@run parameters and allows to throw errors inside events or filters
5 days ago
fadrian06
988c64ed22
rename $containerInterfaceNS -> $containerFQCN and extract InvalidArgumentException $message argument
5 days ago
fadrian06
0b0737f533
remove $this of return type, it's incompatible with self return type
5 days ago
fadrian06
8a4818cf87
improve typehint of keys before and after inside all events in the Dispatcher $filters property
5 days ago
fadrian06
ae735c1845
remove Dispatcher properties redundants explanations
5 days ago
fadrian06
12607d9500
rename Psr\Container\ContainerInterface -> Container
5 days ago
fadrian06
6c5d9de3ca
remove Engine @template
5 days ago
n0nag0n
d8fe78449c
Fix flight.allow_method_override not disabling method override (GHSA-vr9m-jx6f-hhj6)
...
Assign Request::$allowMethodOverride on the class before any Request is
built, so the constructor does not cache an overridden verb while the
static still defaults to true. When override is disabled and an override
header or _method field is present, recompute the cached request method
so early Flight::request() access cannot keep a spoofed DELETE/PUT/PATCH.
Add regression tests for the Engine start path, early request construction,
_method, and intentional manual method assignment without override input.
1 week ago
n0nag0n
ee03274498
Merge pull request #714 from flightphp/feat/align-runway-commands-with-skeleton
...
Align Runway generators with skeleton App\ layout
2 weeks ago
n0nag0n
98c9c89893
Align Runway generators with skeleton App\ layout and fix suite gates
...
make:controller now generates App\Controller under app/Controller/, and
ai:generate-instructions writes only AGENTS.md with Twig/SimplePdo
conventions. Clear a stale PHPStan baseline entry and resolve PHPCS
issues so multi-PHP tests/phpstan/phpcs pass cleanly.
2 weeks ago
n0nag0n
f2df5232c4
Add project instructions for FlightPHP core library
1 month ago
n0nag0n
128af19ae9
Merge pull request #713 from flightphp/use-best-practices-in-index.php
...
Use static callables with type hints
1 month ago
fadrian06
83d7096ee7
use static callables with typehints
1 month ago
n0nag0n
eb24cff886
Merge pull request #711 from flightphp/feat/ai-generate-agents-md
...
feat(ai): generate AGENTS.md in ai:generate-instructions command
2 months ago
n0nag0n
53d422001e
feat(ai): generate AGENTS.md in ai:generate-instructions command
...
Also write project AI instructions to AGENTS.md alongside the existing
copilot, cursor, gemini, and windsurf output files.
2 months ago
n0nag0n
bac3714368
Merge pull request #709 from flightphp/autoload-rework
...
Refactor autoloading and normalize test structure
2 months ago
copilot-swe-agent[bot]
46e457f9c5
Merge master into autoload-rework
2 months ago
fadrian06
d58cbacda1
restore and improve custom autoloader
2 months ago
n0nag0n
3ca4c86da8
Merge pull request #703 from flightphp/sort-.gitignore
...
Sort .gitignore
2 months ago
n0nag0n
61db3b2fcc
Merge branch 'master' into sort-.gitignore
2 months ago
n0nag0n
ad7c613d55
Merge pull request #704 from flightphp/simplify-coverage-generation
...
Simplify code coverage generation
2 months ago
n0nag0n
dcab35b729
Merge pull request #705 from flightphp/combine-phpstan-and-phpcs-in-lint-script
...
Combine PHPStan and PHPCS in lint script
2 months ago
n0nag0n
68f0942127
Merge branch 'master' into combine-phpstan-and-phpcs-in-lint-script
2 months ago
n0nag0n
03ed9fe706
Merge pull request #706 from flightphp/phpstan-rework
...
Update PHPStan configuration and enable type treatment
2 months ago
n0nag0n
f20f1d2014
Merge pull request #707 from flightphp/phpunit-watcher-rework
...
Add phpunit-watcher for improved testing and customization
2 months ago
n0nag0n
18786481d9
Merge pull request #708 from flightphp/phpcs-rework
...
Rename beautify command to format
2 months ago
fadrian06
770d246e29
Potential fix for pull request finding
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2 months ago
fadrian06
ee9b5f2082
reset v2ClassLoading
2 months ago
fadrian06
8ec68173ce
validate ->setAccesible
2 months ago
fadrian06
cf553d36d4
remove flight/autoload.php
2 months ago
fadrian06
47a3702927
refactor LoaderTest
2 months ago
fadrian06
db343815a3
normalize dirs
2 months ago
fadrian06
9aab65b7f6
fix Loader::register docblock
2 months ago
fadrian06
921c51a5d6
use is_iterable in Loader::register
2 months ago