PHPackages                             mediamonks/symfony-frontend-connector-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. [API Development](/categories/api)
4. /
5. mediamonks/symfony-frontend-connector-bundle

ActiveSymfony-bundle[API Development](/categories/api)

mediamonks/symfony-frontend-connector-bundle
============================================

Connects frontend to the backend

0321PHP

Since Oct 18Pushed 4y ago10 watchersCompare

[ Source](https://github.com/mediamonks/symfony-frontend-connector-bundle)[ Packagist](https://packagist.org/packages/mediamonks/symfony-frontend-connector-bundle)[ RSS](/packages/mediamonks-symfony-frontend-connector-bundle/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require mediamonks/symfony-frontend-connector-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require mediamonks/symfony-frontend-connector-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    MediaMonks\FrontendConnectorBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

#### Bundle config file

[](#bundle-config-file)

```
# config/packages/frontend_connector.yaml
parameters:
  asset_version: src #[deploytool]
```

#### Routing file

[](#routing-file)

```
# config/routes/frontend_connector.yaml
frontend-connector:
  path: /
  methods: GET
  requirements:
    p: '^(?!api/*).+'
  controller: MediaMonks\FrontendConnectorBundle\Controller\FrontendController::index
```

Using your own controller
-------------------------

[](#using-your-own-controller)

It's easy to overwrite parts of the default controller, by just extending it.

```
// App/Controller/Api/FrontendController
