2017 © Pedro Peláez
 

symfony-bundle rest-extra-bundle

Helper to avoid annotations with FOSRestBundle and SensioFrameworkExtraBundle

image

mi/rest-extra-bundle

Helper to avoid annotations with FOSRestBundle and SensioFrameworkExtraBundle

  • Wednesday, November 4, 2015
  • by mi24administrator
  • Repository
  • 7 Watchers
  • 0 Stars
  • 3,964 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 12 % Grown

The README.md

Mi RestExtraBundle

Build Status Latest Stable Version Latest Unstable Version Total Downloads License, (*1)

Overview

..., (*2)

Installation

  1. Add this bundle to your project as a composer dependency:, (*3)

    composer require mi/rest-extra-bundle
    
  2. Add this bundle in your application kernel:, (*4)

    // app/AppKernel.php
    public function registerBundles()
    {
        // ...
        $bundles[] = new \Mi\Bundle\RestExtraBundle\MiRestExtraBundle();
    
        return $bundles;
    }
    

Usage

ParamConverterListener

```yaml
#routing.yml
mi_rest_extra_create:
    ...
    defaults:
      ...
      _converters:
        note:
            name: note
            converter: fos_rest.request_body
            class: Mi\RestExtra\Core\Model\Note
```

ParamFetcherListener

```yaml
#routing.yml
mi_rest_extra_create:
    ...
    defaults:
      ...
      _params:
          startDate:
              strict: true
              nullable: false
```

ViewListener

```yaml
#routing.yml
mi_rest_extra_create:
    ...
    defaults:
      ...
      _view:
        serializerGroups: [list]
```

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This library is under the MIT license., (*5)

The Versions

04/11 2015

dev-master

9999999-dev

Helper to avoid annotations with FOSRestBundle and SensioFrameworkExtraBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

04/11 2015

v1.1.1

1.1.1.0

Helper to avoid annotations with FOSRestBundle and SensioFrameworkExtraBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

17/10 2015

v1.1.0

1.1.0.0

Helper to avoid annotations with FOSRestBundle and SensioFrameworkExtraBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

19/09 2015

v1.0.1

1.0.1.0

Helper to avoid annotations with FOSRestBundle and SensioFrameworkExtraBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

19/09 2015

v1.0.0

1.0.0.0

Helper to avoid annotations with FOSRestBundle and SensioFrameworkExtraBundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe