PHPackages                             zalas/param-converter-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zalas/param-converter-bundle

AbandonedArchivedBundle

zalas/param-converter-bundle
============================

Bundle that provides additional param converters for Symfony

v1.1.0(8y ago)161792MITPHPPHP ^7.0

Since Aug 19Pushed 8y ago4 watchersCompare

[ Source](https://github.com/jakzal/ParamConverterBundle)[ Packagist](https://packagist.org/packages/zalas/param-converter-bundle)[ RSS](/packages/zalas-param-converter-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

Param Converter Bundle
======================

[](#param-converter-bundle)

This bundle provides additional param converters for Symfony.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c5400af234567971f5fd19009850b395e2be7c4d800610bb7028fe4b0d5a4007/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a616b7a616c2f506172616d436f6e76657274657242756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jakzal/ParamConverterBundle/?branch=master)[![Build Status](https://camo.githubusercontent.com/832ee98ccac69bcbb0abb6edb3cd53e7b65f4b28d74d4b94ec4809a735e67cde/68747470733a2f2f7472617669732d63692e6f72672f6a616b7a616c2f506172616d436f6e76657274657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jakzal/ParamConverterBundle)

**Since [argument resolvers](http://symfony.com/doc/current/controller/argument_value_resolver.html)and [service arguments](http://symfony.com/doc/master//service_container/3.3-di-changes.html#controllers-are-registered-as-services)were introduced in Symfony 3.3, the param converter provided by this bundle is redundant. We can achieve pretty much the same by injecting services directly to controller actions.**

Installation
------------

[](#installation)

This bundle requires:

- PHP ^7.0
- sensio/framework-extra-bundle ~3.0

The easiest way to install it is to use Composer:

```
$ composer require zalas/param-converter-bundle:^1.0

```

Service Param Converter
-----------------------

[](#service-param-converter)

The service param converter calls a configured service to convert a request attribute to an object.

Options:

- service - a service id
- method - a method name to be called on the service
- arguments - list of request attributes to be passed as method call arguments

Example:

```
