Implement middleware layer
Remove "symfony/http-kernel" dependency