PHPackages                             qafoolabs/framework-extra-bundle - 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. qafoolabs/framework-extra-bundle

AbandonedArchivedSymfony-bundle[Framework](/categories/framework)

qafoolabs/framework-extra-bundle
================================

Various improvements for Symfony applications

v2.6(7y ago)12314.0k13[3 issues](https://github.com/QafooLabs/QafooLabsNoFrameworkBundle/issues)[3 PRs](https://github.com/QafooLabs/QafooLabsNoFrameworkBundle/pulls)MITPHP

Since Jan 12Pushed 5y ago2 watchersCompare

[ Source](https://github.com/QafooLabs/QafooLabsNoFrameworkBundle)[ Packagist](https://packagist.org/packages/qafoolabs/framework-extra-bundle)[ RSS](/packages/qafoolabs-framework-extra-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (9)Versions (17)Used By (0)

QafooLabs NoFrameworkBundle
===========================

[](#qafoolabs-noframeworkbundle)

*Disclaimer: This is not an official Qafoo product but a prototype. We don't provide support on this repository.*

[![Build Status](https://camo.githubusercontent.com/cfe83bb897fd92d0a03ab8a8a6a2f8d0578618a4a7af379256a219aa4b06653d/68747470733a2f2f7472617669732d63692e6f72672f5161666f6f4c6162732f5161666f6f4c6162734e6f4672616d65776f726b42756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/QafooLabs/QafooLabsNoFrameworkBundle)

This bundle is discontinued under this name and was moved to

Goals
-----

[](#goals)

We want to achieve slim controllers that are registered as a service. The number of services required in any controller should be very small (2-4). We believe Context to controllers should be explicitly passed to avoid hiding it in services.

Ultimately this should make Controllers testable with lightweight unit- and integration tests. Elaborate seperation of Symfony from your business logic should become unnecessary by building controllers that don't depend on Symfony from the beginning (except maybe Request/Response classes).

For this reason the following features are provided by this bundle:

- Returning View data from controllers
- Returning RedirectRoute
- Helper for Controllers as Service
- Convert Exceptions from Domain/Library Types to Framework Types

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

[](#installation)

Add bundle to your application kernel:

```
$bundles = array(
    // ...
    new QafooLabs\Bundle\NoFrameworkBundle\QafooLabsNoFrameworkBundle(),
);
```

Disable view listener in SensioFrameworkExtraBundle if you are using that (not a requirement anymore):

```
# app/config/config.yml
sensio_framework_extra:
    view:
        annotations: false
```

Returning View data from controllers
------------------------------------

[](#returning-view-data-from-controllers)

### Returning Arrays

[](#returning-arrays)

This bundle replaces the `@Extra\Template()` annotation support from the Sensio FrameworkExtraBundle, without requiring to add the annotation to the controller actions.

You can just return arrays from controllers and the template names will be inferred from Controller+Action-Method names.

```
