Demo Symfony application for the phauthentic/aop library and the phauthentic/symfony-aop bundle.
bin/console app:aop-demoruns the services insrc/Serviceand prints what the aspects did.bin/console debug:aoplists every woven aspect, advice and the methods they apply to.src/Aspectholds the aspects: logging, caching, retry, validation and the audit introduction.src/Serviceholds the advised services.- The
Auditableintroduction (src/Contract/Auditable.php) adds an interface and its implementation to the advised service at compile time.
Both packages are public GitHub repositories without Packagist releases, so they are pulled from the VCS repositories declared in composer.json.
PHP 8.3 or later and Composer 2 are required.
composer install
bin/console cache:clear
bin/console debug:aop
bin/console app:aop-demo
composer check # php-cs-fixer, phpstan and the E2E tests- Phauthentic/aop is the framework-free library. The documentation index is
docs/README.md. - Phauthentic/aop-symfony is the Symfony bundle.