Skip to content

Commit

Permalink
Merge pull request #4 from phanan-forks/chore/fix-readme
Browse files Browse the repository at this point in the history
Fix README to prepare for new major version
  • Loading branch information
phanan authored Mar 18, 2020
2 parents 26d0f81 + 8d47a4f commit 0ef5720
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
# DecoratorBundle for Symfony2
# DecoratorBundle for Symfony

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/InterNations/DecoratorBundle?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/InterNations/DecoratorBundle.svg?branch=master)](https://travis-ci.org/InterNations/DecoratorBundle) [![Dependency Status](https://www.versioneye.com/user/projects/53479c66fe0d0720b500007c/badge.png)](https://www.versioneye.com/user/projects/53479c66fe0d0720b500007c) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/InterNations/DecoratorBundle.svg)](http://isitmaintained.com/project/InterNations/DecoratorBundle "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/InterNations/DecoratorBundle.svg)](http://isitmaintained.com/project/InterNations/DecoratorBundle "Percentage of issues still open")

Provides consistent decorator handling for the Symfony2 Dependency Injection Container.
Provides consistent decorator handling for the Symfony Dependency Injection Container.

## Installation

For Symfony 3.3 up to 4:

```bash
composer require internations/decorator-bundle
```

For Symfony < 3.3:

```bash
composer require internations/decorator-bundle:~0
```

## Usage

Expand Down Expand Up @@ -67,7 +81,6 @@ To control the order of decoration, setting a priority flag for the decorator is
`PHP_INT_MAX` and `-PHP_INT_MAX`, the default priority is `0`.

```xml
...
<service id="infinite_iterator" class="InifiteIterator" public="false">
<argument type="service" id="__subject__"/>
<tag name="decorator.decorate_other" service_id="iterator" priority="255"/>
Expand All @@ -85,6 +98,7 @@ namespace …;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use InterNations\Bundle\DecoratorBundle\Tagger\DecorationTagger;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class MyCompilerPass implements CompilerPassInterface
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "internations/decorator-bundle",
"description": "Symfony2 bundle to handle decorators in the service containers",
"description": "Symfony bundle to handle decorators in the service containers",
"require-dev": {
"phpunit/phpunit": "~6",
"internations/testing-component": "dev-master"
Expand Down

0 comments on commit 0ef5720

Please sign in to comment.