<commit_before>saxulum/saxulum-doctrine-orm-manager-registry-provider
======================================================

[![Build Status](https://api.travis-ci.org/saxulum/saxulum-doctrine-orm-manager-registry-provider.png?branch=master)](https://travis-ci.org/saxulum/saxulum-doctrine-orm-manager-registry-provider)
[![Total Downloads](https://poser.pugx.org/saxulum/saxulum-doctrine-orm-manager-registry-provider/downloads.png)](https://packagist.org/packages/saxulum/saxulum-doctrine-orm-manager-registry-provider)
[![Latest Stable Version](https://poser.pugx.org/saxulum/saxulum-doctrine-orm-manager-registry-provider/v/stable.png)](https://packagist.org/packages/saxulum/saxulum-doctrine-orm-manager-registry-provider)
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/saxulum/saxulum-doctrine-orm-manager-registry-provider/badges/quality-score.png?s=cc4f9fc8723947e7e3e4c14f20d3b7cb20695a5a)](https://scrutinizer-ci.com/g/saxulum/saxulum-doctrine-orm-manager-registry-provider/)

Features
--------

 * Leverages the core [Doctrine Service Provider][1] for either Silex or Cilex and the [Doctrine ORM Service Provider][3]
 * The Registry manager registry can the used with the [Doctrine Bridge][4] from symfony, to use entity type in the [Symfony Form Component][5] 

Requirements
------------

 * PHP 5.3+
 * Doctrine ~2.3
 
Currently requires both **dbs** and **orm.ems** services in order to work.
These can be provided by a Doctrine Service Provider like the [Silex][1] or [Cilex][2] and the Doctrine ORM Serice Provider like the [dflydev-doctrine-orm-service-provider][3] service providers.
If you can or want to fake it, go for it. :)

Installation
------------
 
Through [Composer](http://getcomposer.org) as [saxulum/saxulum-doctrine-orm-manager-registry-provider][6].

```{.php}
use Saxulum\DoctrineOrmManagerRegistry\Silex\Provider\DoctrineOrmManagerRegistryProvider;

$app->register(new DoctrineOrmManagerRegistryProvider());
```

### Form Entity Type

If you like to have `Entity` Type Support within [Symfony Form Component][5], install the [Doctrine Bridge][4] and register the form provider first.

```{.json}
{
    "require": {
        "symfony/doctrine-bridge": "~2.2",
        "symfony/form": "~2.2"
    }
}
```

```{.php}
use Saxulum\DoctrineOrmManagerRegistry\Silex\Provider\DoctrineOrmManagerRegistryProvider;
use Silex\Provider\FormServiceProvider;

$app->register(new FormServiceProvider());
$app->register(new DoctrineOrmManagerRegistryProvider());
```

### Doctrine ORM Console

If you like to use [Doctrine ORM Console][7] commands, install [Doctrine ORM Console][7] and the [Saxulum Console Provider][8] and register the console provider.

```{.json}
{
    "require": {
        "saxulum-doctrine-orm-commands": "~1.0.0",
        "saxulum/saxulum-console": "~1.1.1",
    }
}
```

```{.php}
use Saxulum\DoctrineOrmManagerRegistry\Silex\Provider\DoctrineOrmManagerRegistryProvider;
use Saxulum\Console\Silex\Provider\ConsoleProvider;

$app->register(new ConsoleProvider());
$app->register(new DoctrineOrmManagerRegistryProvider());<commit_msg>add <?php<commit_after>saxulum/saxulum-doctrine-orm-manager-registry-provider
======================================================

[![Build Status](https://api.travis-ci.org/saxulum/saxulum-doctrine-orm-manager-registry-provider.png?branch=master)](https://travis-ci.org/saxulum/saxulum-doctrine-orm-manager-registry-provider)
[![Total Downloads](https://poser.pugx.org/saxulum/saxulum-doctrine-orm-manager-registry-provider/downloads.png)](https://packagist.org/packages/saxulum/saxulum-doctrine-orm-manager-registry-provider)
[![Latest Stable Version](https://poser.pugx.org/saxulum/saxulum-doctrine-orm-manager-registry-provider/v/stable.png)](https://packagist.org/packages/saxulum/saxulum-doctrine-orm-manager-registry-provider)
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/saxulum/saxulum-doctrine-orm-manager-registry-provider/badges/quality-score.png?s=cc4f9fc8723947e7e3e4c14f20d3b7cb20695a5a)](https://scrutinizer-ci.com/g/saxulum/saxulum-doctrine-orm-manager-registry-provider/)

Features
--------

 * Leverages the core [Doctrine Service Provider][1] for either Silex or Cilex and the [Doctrine ORM Service Provider][3]
 * The Registry manager registry can the used with the [Doctrine Bridge][4] from symfony, to use entity type in the [Symfony Form Component][5] 

Requirements
------------

 * PHP 5.3+
 * Doctrine ~2.3
 
Currently requires both **dbs** and **orm.ems** services in order to work.
These can be provided by a Doctrine Service Provider like the [Silex][1] or [Cilex][2] and the Doctrine ORM Serice Provider like the [dflydev-doctrine-orm-service-provider][3] service providers.
If you can or want to fake it, go for it. :)

Installation
------------
 
Through [Composer](http://getcomposer.org) as [saxulum/saxulum-doctrine-orm-manager-registry-provider][6].

```{.php}
<?php

use Saxulum\DoctrineOrmManagerRegistry\Silex\Provider\DoctrineOrmManagerRegistryProvider;

$app->register(new DoctrineOrmManagerRegistryProvider());
```

### Form Entity Type

If you like to have `Entity` Type Support within [Symfony Form Component][5], install the [Doctrine Bridge][4] and register the form provider first.

```{.json}
{
    "require": {
        "symfony/doctrine-bridge": "~2.2",
        "symfony/form": "~2.2"
    }
}
```

```{.php}
<?php

use Saxulum\DoctrineOrmManagerRegistry\Silex\Provider\DoctrineOrmManagerRegistryProvider;
use Silex\Provider\FormServiceProvider;

$app->register(new FormServiceProvider());
$app->register(new DoctrineOrmManagerRegistryProvider());
```

### Doctrine ORM Console

If you like to use [Doctrine ORM Console][7] commands, install [Doctrine ORM Console][7] and the [Saxulum Console Provider][8] and register the console provider.

```{.json}
{
    "require": {
        "saxulum-doctrine-orm-commands": "~1.0.0",
        "saxulum/saxulum-console": "~1.1.1",
    }
}
```

```{.php}
<?php
use Saxulum\DoctrineOrmManagerRegistry\Silex\Provider\DoctrineOrmManagerRegistryProvider;
use Saxulum\Console\Silex\Provider\ConsoleProvider;

$app->register(new ConsoleProvider());
$app->register(new DoctrineOrmManagerRegistryProvider());
{'fraction_non_alphanumeric': 0.1667744020685197, 'fraction_numerical': 0.016483516483516484, 'mean_word_length': 5.207622868605817, 'pattern_counts': {'":': 12, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '275032', 'n_tokens_mistral': 2108, 'n_tokens_neox': 2013, 'n_words': 391}