# AbstractController

Extends \Symfony\Bundle\FrameworkBundle\Controller\Controller

Base controller for every application instance

author | Lukas Korinek
package | Default

### Methods

## __construct

    __construct(\Symfony\Component\HttpFoundation\RequestStack $stack)

### Arguments

#### $stack

`\Symfony\Component\HttpFoundation\RequestStack`

## Flushes any doctrine related changes

    flush()

## Returns current request

    getRequest() : \Symfony\Component\HttpFoundation\Request

### Response

`\Symfony\Component\HttpFoundation\Request`

## Creates a response

    response(array $data = array()) : \Symfony\Component\HttpFoundation\Response

### Arguments

#### $data

`array`

### Response

`\Symfony\Component\HttpFoundation\Response`

### Properties

## Current request

    request : \Symfony\Component\HttpFoundation\Request

var | Current request

### Type(s)

`\Symfony\Component\HttpFoundation\Request`