PHPackages                             gnugat/redaktilo-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gnugat/redaktilo-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

gnugat/redaktilo-bundle
=======================

Provides Redaktilo's Editor and TextFactory as services

v1.5.2(10y ago)6216MITPHP

Since Oct 25Pushed 10y ago2 watchersCompare

[ Source](https://github.com/gnugat/redaktilo-bundle)[ Packagist](https://packagist.org/packages/gnugat/redaktilo-bundle)[ Docs](https://github.com/gnugat/redaktilo-bundle)[ RSS](/packages/gnugat-redaktilo-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (11)Used By (0)

Redaktilo Bundle
================

[](#redaktilo-bundle)

Provides the following services from [Redaktilo](http://github.com/gnugat/redaktilo)in a [Symfony2](http://symfony.com) application:

- `redaktilo.editor`: an instance of [`Gnugat\Redaktilo\Editor`](http://github.com/gnugat/redaktilo/tree/master/src/Gnugat/Redaktilo/Editor.php)

Documentation:

- [Extending](#extending)
- [Installation](#installation)
- [Usage with Symfony2 DependencyInjection Component standalone](#usage-with-symfony2-dependencyinjection-component-standalone)
- [Further documentation](#further-documentation)

[![SensioLabsInsight](https://camo.githubusercontent.com/a064333ad8470b5e3a5f26c9bebd3914374caa5e381b82e598ca5421eca28f5a/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35376266366264612d666563392d343035642d386537332d6666316563626562613836382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/57bf6bda-fec9-405d-8e73-ff1ecbeba868)[![Travis CI](https://camo.githubusercontent.com/041fee62fb840c05b488e4ea65ff01871b04d79ce63b22c4b4d6b6c404606a8e/68747470733a2f2f7472617669732d63692e6f72672f676e756761742f726564616b74696c6f2d62756e646c652e706e67)](https://travis-ci.org/gnugat/redaktilo-bundle)

Extending
---------

[](#extending)

You can also [extend](http://github.com/gnugat/redaktilo/tree/master/doc/05-extending.md)Redaktilo by creating new [`SearchStrategy`](http://github.com/gnugat/redaktilo/tree/master/src/Gnugat/Redaktilo/Search/SearchStrategy.php)and new [`Command`](http://github.com/gnugat/redaktilo/tree/master/src/Gnugat/Redaktilo/Command/Command.php).

To make your custom `Command` and `SearchStrategy` available, simply define them as services in your Symfony2 application and tag them:

```
services:
    acme_redaktilo.custom_command:
        class: Acme\RedaktiloBundle\Command\CustomCommand
        tags:
            - { name: redaktilo.command }

    acme_redaktilo.custom_search_strategy:
        class: Acme\RedaktiloBundle\Search\SearchStrategy
        tags:
            - { name: redaktilo.search_strategy, priority: 20 }
```

> **Note**: `SearchStrategy`'s priority is optionnal (defaults to 0). The higher the priority is, the sooner `SearchEngine` will check if the `SearchStrategy` supports the given pattern.

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

[](#installation)

Use [Composer](http://getcomposer.com) to install the bundle:

```
composer require gnugat/redaktilo-bundle:^1.0

```

Then register the bundle in you kernel. For example:

```
