2017 © Pedro Peláez
 

symfony-bundle amf-bundle

Symfony2 Bundle Amf Extension

image

jerni/amf-bundle

Symfony2 Bundle Amf Extension

  • Friday, March 28, 2014
  • by jerni
  • Repository
  • 1 Watchers
  • 0 Stars
  • 68 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

amf-service

php composer.phar require jerni/amf-bundle, (*1)

branch: dev-master, (*2)

Register bundle in AppKernel.php, (*3)

public function registerBundles()
{

        new Jse\AmfBundle\JseAmfBundle(),

}

add in config/routing.yml, (*4)

jse_amf_bundle:
    resource: "@JseAmfBundle/Resources/config/routing.xml"
    prefix:   /gateway-service

add in config/config.yml, (*5)

jse_amf:
    service_path: Acme/DemoBundle

sample service:, (*6)

//Acme/DemoBundle/Services/AmfService/TestService.php

use Jse\AmfBundle\Services\AmfServiceContainer;

class TestSevice extends AmfServiceContainer{

    public function testsAction($obj){
        $cat = $this->getContainer()->get('sonata.classification.manager.category')->findOneBy(array('id' => 1));
        return json_encode($cat->getName());
    }

}

The Versions

28/03 2014

dev-master

9999999-dev https://github.com/jerni/amf-bundle

Symfony2 Bundle Amf Extension

  Sources   Download

MIT

symfony2 amf amfservice