2017 © Pedro Peláez
 

symfony-bundle front-render-bundle

Render Front Application through Symfony Application.

image

chris13/front-render-bundle

Render Front Application through Symfony Application.

  • Monday, February 29, 2016
  • by chris13
  • Repository
  • 2 Watchers
  • 0 Stars
  • 690 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

SensioLabsInsight Scrutinizer Code Quality Build Status Dependency Status, (*1)

Front Render Bundle

Render Front Application (AngularJs, BackboneJs...) through Symfony 2 Application, (*2)

Installation

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:, (*3)

$ composer require chris13/front-render-bundle "~1"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*4)

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*5)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Chris\Bundle\FrontRenderBundle\FrontRenderBundle(),
        );

        // ...
    }

    // ...
}

Configure the bundle

2 differents solutions to configure the path to Front Application :, (*6)

-Configuration by the config.yml, (*7)

-Configuration by listener, (*8)

Usage

Render your front application :, (*9)

<?php

namespace AppBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class DefaultController extends Controller
{
    /**
     * @Route("/", name="homepage")
     */
    public function indexAction(Request $request)
    {
        $frontRender = $this->get('front_render_bundle.front_render');

        //Optional
        $frontRender
            ->setParameters(
            [
                'param' => 'param',
            ]
        );

        return new Response($frontRender->render());
    }
}

Tests

Run Unit Test in the bundle:, (*10)

$ ./bin/phpunit --debug -c ./

The Versions

29/02 2016

dev-master

9999999-dev

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

angularjs symfony 2 front render application

29/02 2016

1.4.0

1.4.0.0

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

angularjs symfony 2 front render application

25/02 2016

1.3.1

1.3.1.0

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

angularjs symfony 2 front render application

23/02 2016

1.3.0

1.3.0.0

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

angularjs symfony 2 front render application

11/02 2016

1.2.1

1.2.1.0

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

angularjs symfony 2 front render application

11/02 2016

1.2.0

1.2.0.0

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

angularjs symfony 2 front render application

02/02 2016

1.1.1

1.1.1.0

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

angularjs symfony 2 front render application

07/01 2016

1.1.0

1.1.0.0

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

angularjs symfony 2 front render application

08/12 2015

1.0.1

1.0.1.0

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

angularjs symfony 2 front render application

04/12 2015

1.0.0

1.0.0.0

Render Front Application through Symfony Application.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

angularjs symfony 2 front render application