aatis / kernel
There is no license information available for the latest version (1.3.0) of this package.
Kernel of Aatis
1.3.0
2024-02-14 13:31 UTC
Requires
- aatis/dependency-injection: ^1.5
- aatis/error-handler: ^1.0
- aatis/file-manager: ^0.0.1
- aatis/logger: ^1.0
- aatis/routing: ^1.1
- aatis/template-renderer: ^1.1
- vlucas/phpdotenv: ^5.6
README
Installation
composer require aatis/kernel
Usage
Requirements
First, inform the router class :
# In config/services.yaml file : include_services: - 'Aatis\Routing\Service\Router'
Then, create your kernel class and extend the Aatis Kernel
:
use Aatis\Kernel as BaseKernel; class YourKernel extends BaseKernel { public function handle(): void { // Your extra stuff parent::handle(); // Your extra stuff } }
Or use it directly into your code :
(new Kernel())->handle();