2017 © Pedro Peláez
 

symfony-bundle injection-bundle

Lets you inject services and container parameters into controllers.

image

astina/injection-bundle

Lets you inject services and container parameters into controllers.

  • Monday, May 13, 2013
  • by pkraeutli
  • Repository
  • 10 Watchers
  • 0 Stars
  • 5,645 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Astina Injection Bundle

Lets you inject services and container parameters into controllers., (*1)

Installation

Step 1: Add to composer.json

"require" :  {
    // ...
    "astina/injection-bundle":"dev-master",
}

Step 2: Enable the bundle

Enable the bundle in the kernel:, (*2)

``` php <?php // app/AppKernel.php, (*3)

public function registerBundles() { $bundles = array( // ... new Astina\Bundle\InjectionBundle\AstinaInjectionBundle(), ); }, (*4)


##Usage ```php use Astina\Bundle\InjectionBundle\Annotation as Inject; class DefaultController { /** * @Inject\Service("session") * @var SessionInterface */ private $session; /** * @Inject\Parameter("acme_foo") */ private $foo; /** * @Route("/foo", name="foo") * @Template */ public function indexAction() { $foo = $this->session->get($this->foo); return array( 'foo' => $foo, ); } }

The Versions

13/05 2013

dev-master

9999999-dev http://astina.ch

Lets you inject services and container parameters into controllers.

  Sources   Download

MIT

The Requires

 

injection astina

11/05 2013

0.2.0

0.2.0.0 http://astina.ch

Lets you inject services and container parameters into controllers.

  Sources   Download

MIT

The Requires

 

injection astina

25/03 2013

0.1.0

0.1.0.0 http://astina.ch

Lets you inject services and container parameters into controllers.

  Sources   Download

MIT

injection astina