rquadling / application-controller
There is no license information available for the latest version (v1.1.1) of this package.
A simple web controller that wraps a Symfony/Application used by RQuadling's projects.
Package info
github.com/rquadling/application-controller
Language:HTML
pkg:composer/rquadling/application-controller
v1.1.1
2020-01-09 13:13 UTC
Requires
- php: ^7
- guzzlehttp/guzzle: ^6.5
- rquadling/abstract-console: ^1.0.0
- sensiolabs/ansi-to-html: ^1.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpstan/phpstan: ^0.9.2
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2026-02-10 02:48:08 UTC
README
A simple web controller that wraps a Symfony/Application used by RQuadling's projects.
Installation
Using Composer:
composer require rquadling/application-controller
Usage
Dependency Injection
Within your di.php, define the response to the request for a \RQuadling\Console\Abstracts\AbstractApplication.
Example:
\RQuadling\Console\Abstracts\AbstractApplication::class => function ($c) { return $c->get(YourApplication::class); },
Public index.php
<?php require dirname(__DIR__).'/vendor/autoload.php'; \RQuadling\DependencyInjection\ContainerFactory::build() ->get(\RQuadling\Controllers\ApplicationController::class) ->index();