PHPackages                             rquadling/application-controller - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. rquadling/application-controller

ActiveLibrary[Framework](/categories/framework)

rquadling/application-controller
================================

A simple web controller that wraps a Symfony/Application used by RQuadling's projects.

v1.1.1(6y ago)03HTMLPHP ^7CI failing

Since Jan 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/rquadling/application-controller)[ Packagist](https://packagist.org/packages/rquadling/application-controller)[ RSS](/packages/rquadling-application-controller/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

RQuadling/ApplicationController
===============================

[](#rquadlingapplicationcontroller)

[![Build Status](https://camo.githubusercontent.com/4406ff638ef07ed9a7b7155ba032f2b8366365487581328036e9a4395f981bd9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72717561646c696e672f6170706c69636174696f6e2d636f6e74726f6c6c65722e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d747261766973)](https://travis-ci.org/rquadling/application-controller)[![Code Coverage](https://camo.githubusercontent.com/7ce9b8fbd79c4ba65a321e98aef9f7b03a60ee074f541d9420d2df03a8648a8d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72717561646c696e672f6170706c69636174696f6e2d636f6e74726f6c6c65722e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d7363727574696e697a6572)](https://scrutinizer-ci.com/g/rquadling/application-controller/)[![GitHub issues](https://camo.githubusercontent.com/9c38922e45276c9554f2b5c94d9a81be3fdd64176731343793775d0bebbc5281/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f72717561646c696e672f6170706c69636174696f6e2d636f6e74726f6c6c65722e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/rquadling/application-controller/issues)

[![PHP Version](https://camo.githubusercontent.com/273a0c6a7a47eee624547d703f2d53ded3ccf09f21190da06123890d0c9b52b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72717561646c696e672f6170706c69636174696f6e2d636f6e74726f6c6c65722e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/rquadling/application-controller)[![Stable Version](https://camo.githubusercontent.com/ad02169eaa413ae6d593316fef49aec3291701f236f990ece60bdec1c2c8dc8f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72717561646c696e672f6170706c69636174696f6e2d636f6e74726f6c6c65722e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6174657374)](https://packagist.org/packages/rquadling/application-controller)

[![Total Downloads](https://camo.githubusercontent.com/5b17acf2376014e38f799293ec68ecad360283951091a35b955c12e5b973d3c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72717561646c696e672f6170706c69636174696f6e2d636f6e74726f6c6c65722e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d546f74616c2b646f776e6c6f616473)](https://packagist.org/packages/rquadling/application-controller)[![Monthly Downloads](https://camo.githubusercontent.com/b0a15c41c1f37cfc2a4ba9a79788d8d9f634167aea7f1e311bf9f64fb8000d5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f72717561646c696e672f6170706c69636174696f6e2d636f6e74726f6c6c65722e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4d6f6e74686c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/application-controller)[![Daily Downloads](https://camo.githubusercontent.com/38e65e6204d1eff8553c893d6666f3d056cfc7dafa074dcf89adc37f6c7965a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f72717561646c696e672f6170706c69636174696f6e2d636f6e74726f6c6c65722e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4461696c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/application-controller)

A simple web controller that wraps a Symfony/Application used by RQuadling's projects.

Installation
------------

[](#installation)

Using Composer:

```
composer require rquadling/application-controller
```

Usage
-----

[](#usage)

### Dependency Injection

[](#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`

[](#public-indexphp)

```
