jerni / amf-bundle
Symfony2 Bundle Amf Extension
Installs: 72
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/jerni/amf-bundle
This package is not auto-updated.
Last update: 2025-10-25 20:42:05 UTC
README
php composer.phar require jerni/amf-bundle
branch: dev-master
Register bundle in AppKernel.php
public function registerBundles()
{
        new Jse\AmfBundle\JseAmfBundle(),
        
}
add in config/routing.yml
jse_amf_bundle:
    resource: "@JseAmfBundle/Resources/config/routing.xml"
    prefix:   /gateway-service
add in config/config.yml
jse_amf:
    service_path: Acme/DemoBundle
sample service:
//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());
    }
    
}