2017 © Pedro Peláez
 

symfony-bundle state-bridge-bundle

Provides a basic framework for sharing application state from a Symfony2 backend to a javascript (AngularJS in particular) frontend.

image

devtrw/state-bridge-bundle

Provides a basic framework for sharing application state from a Symfony2 backend to a javascript (AngularJS in particular) frontend.

  • Wednesday, July 2, 2014
  • by llwt
  • Repository
  • 1 Watchers
  • 2 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DevtrwStateBridgeBundle

Build Status Code Quality Code Coverage SensioLabsInsight, (*1)

This bundle provides a basic framework for dynamically creating ui-router states from configuration in a symfony bundle. The main drive behind this is to allow for selective activation of parts of an AngularJS frontend based on a users roles within a symfony context., (*2)

Installation

Install Bundle

TODO, (*3)

Register the "jsonp" Request Format

How to register a new Request Format and Mime Type, (*4)

Usage

NOTE: Theses Docs are incomplete. I'll make an effort to fill them out once the API has solidified

1. Define your states under the devtrw_state_bridge.states configuration key., (*5)

See the configuration section below., (*6)

2. Export the devtrw_state_bridge_get_entity_state and devtrw_state_bridge_get_state routes to your angular application., (*7)

The FOSJsRoutingBundle can handle dumping the routes along with the symfony router implemented in javascript. Simply wrap it with an angular module and you'll have easy access to any exported routes from within your angular app., (*8)

3. Create an abstract state in angular that loads in the needed states, (*9)

You can get a general idea of how to do this by skimming over this blog post by Alex Feinberg., (*10)

Configuration

TODO, (*11)

TODO

[ ] Wrap/Extend the FOSJsRoutingBundle to provide a more seamless integration with angular [ ] Finish initial documentation, (*12)

The Versions

02/07 2014

dev-master

9999999-dev

Provides a basic framework for sharing application state from a Symfony2 backend to a javascript (AngularJS in particular) frontend.

  Sources   Download

MIT

The Requires

 

The Development Requires