2017 © Pedro Peláez
 

library composite-object-bundle

Symfony GlavwebCompositeObjectBundle.

image

glavweb/composite-object-bundle

Symfony GlavwebCompositeObjectBundle.

  • Friday, May 4, 2018
  • by nilov
  • Repository
  • 1 Watchers
  • 1 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 5 % Grown

The README.md

Installation

Get the bundle using composer

Add GlavwebCompositeObjectBundle by running this command from the terminal at the root of your Symfony project:, (*1)

php composer.phar require glavweb/composite-object-bundle

Enable the bundle

To start using the bundle, register the bundle in your application's kernel class:, (*2)

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Glavweb\CompositeObjectBundle\GlavwebCompositeObjectBundle(),
        // ...
    );
}

Configure the bundle

Add DBAL type to Doctrine:, (*3)

doctrine:
    dbal:
        types:
            CompositeObjectFieldType: Glavweb\CompositeObjectBundle\DBAL\Types\Object\CompositeObjectFieldType

To enable the dynamic routes, add the following to your routing configuration file:, (*4)

#  app/config/routing.yml

glavweb_composite_object:
    resource: "@GlavwebCompositeObjectBundle/Resources/config/routing.yml"
    prefix:   /

The Versions