2017 © Pedro Peláez
 

symfony-bundle prototype-controller-bundle

Symfony Flexix bundle

image

flexix/prototype-controller-bundle

Symfony Flexix bundle

  • Thursday, July 12, 2018
  • by mariusz.piela
  • Repository
  • 2 Watchers
  • 0 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

Sorry, it's not complete yet!

We are still working on it! (so hard :))

Flexix\PrototypeControllerBundle

by Mariusz Piela mariusz.piela@tmsolution.pl, (*1)


Installation

To install the bundle, add:, (*2)

//composer require

"flexix/prototype-controller-bundle": "dev-master"

to your project's composer.json file. Later, enable your bundle in the app's kernel:, (*3)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FOS\RestBundle\FOSRestBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle(),
        new Flexix\MapperBundle\FlexixMapperBundle(),
        new Flexix\PrototypeControllerBundle\FlexixPrototypeControllerBundle()
    );
}

Creating configuration for Controller

  1. Creaete Configuration
 parameters:    
    some_controller.config: 
        #for all actions
        base:
            allowed: true # you can put array with values xhttp or subrequest
            models:
                 get:
                        name: 'some.service.name'
                        method: someMethod

        actions: 
        #for 'new' action
            new:
               templates:
                    widget: 'some_template.html.twig'
               models:
                    create:
                        name: 'some.service.name'
                        method: someMethod
               form: 
                   action: new 
                   form_type: 'Some\FormTypeClass'
               redirection: 
                    route_name: filter #route name
        #for 'list' action            
            list:
                allowed: #only xhttp and subrequest possible
                        - xhttp
                        - subrequest
                templates:
                    widget: 'some_template.html.twig' 
                models:
                    list:
                        name: 'some.service.name'
                        method: someMethod
                form: 
                   form_type: 'Some\FormTypeClass'
                   action: list
                   method: GET
                adapter: 'some.adapter.service'
        #and so on ....          
  1. Create service

services: some_service_name: class: Flexix\ConfigurationBundle\Util\Configuration arguments: [%some_controller.config%] tags: - { name: flexix_prototype_controller.controller_configuration, applicationPath: 'some/path', entity_alias: 'entity-alias' }, (*4)

For more information read: how to start, (*5)

The Versions

12/07 2018

dev-master

9999999-dev https://github.com/flexix/controller-configuration-bundle

Symfony Flexix bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mariusz Piela
by Tomasz Dyguda

bundle controller flexix prototype controller entity controller

12/07 2018

v1.4

1.4.0.0 https://github.com/flexix/controller-configuration-bundle

Symfony Flexix bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mariusz Piela
by Tomasz Dyguda

bundle controller flexix prototype controller entity controller

16/05 2018

v1.3

1.3.0.0 https://github.com/flexix/controller-configuration-bundle

Symfony Flexix bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mariusz Piela
by Tomasz Dyguda

bundle controller flexix prototype controller entity controller

11/05 2018

v1.2

1.2.0.0 https://github.com/flexix/controller-configuration-bundle

Symfony Flexix bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mariusz Piela
by Tomasz Dyguda

bundle controller flexix prototype controller entity controller

25/08 2017

v1.1

1.1.0.0 https://github.com/flexix/controller-configuration-bundle

Symfony Flexix bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mariusz Piela
by Tomasz Dyguda

bundle controller flexix prototype controller entity controller

25/08 2017

1.0

1.0.0.0 https://github.com/flexix/controller-configuration-bundle

Symfony Flexix bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mariusz Piela
by Tomasz Dyguda

bundle controller flexix prototype controller entity controller