<commit_before>CMS Page Bundle
===============

Bundle extending [SonataPageBundle](https://github.com/sonata-project/SonataPageBundle) in order to simplify the use by developers and future users, trying to not alter the original flexibility, and to give them new basic tools and views.

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/e11f072f-d128-459c-8100-e50bf565e99a/mini.png)](https://insight.sensiolabs.com/projects/e11f072f-d128-459c-8100-e50bf565e99a) [![Latest Stable Version](https://poser.pugx.org/th3mouk/cms-page-bundle/v/stable.svg)](https://packagist.org/packages/th3mouk/cms-page-bundle) [![Total Downloads](https://poser.pugx.org/th3mouk/cms-page-bundle/downloads.svg)](https://packagist.org/packages/th3mouk/cms-page-bundle) [![Latest Unstable Version](https://poser.pugx.org/th3mouk/cms-page-bundle/v/unstable.svg)](https://packagist.org/packages/th3mouk/cms-page-bundle) [![License](https://poser.pugx.org/th3mouk/cms-page-bundle/license.svg)](https://packagist.org/packages/th3mouk/cms-page-bundle)

## SonataPageBundle

The use of this bundle require understanding of the [SonataPageBundle](https://sonata-project.org/bundles/page/master/doc/index.html).


## Installation

### Composer

``` json
composer require th3mouk/cms-page-bundle ~1.1
```

### SonataPageBundle

Install the original [SonataPageBundle](https://sonata-project.org/bundles/page/master/doc/index.html).

### Easy extends

``` bash
app/console sonata:easy-extends:generate Th3MoukCMSPageBundle
```

### Update Kernel

``` php
# app/AppKernel.php
...
new Th3Mouk\CMSPageBundle\Th3MoukCMSPageBundle(),
new Application\Th3Mouk\CMSPageBundle\ApplicationTh3MoukCMSPageBundle(),
...
```

### Configuration

Create the following files:

``` yml
# app/config/bundles/override.yml
parameters:
    #Surcharge PageAdmin
    sonata.page.admin.page.class: Th3Mouk\CMSPageBundle\Admin\PageAdmin
    #Surcharge PageManager
    sonata.page.manager.page.class: Th3Mouk\CMSPageBundle\Entity\PageManager
    #Surcharge Transformer car sinon les attributs additionnel non serialisés
    sonata.page.transformer.class: Th3Mouk\CMSPageBundle\Entity\Transformer
    #Surcharge PageAdminController
    sonata.page.admin.page.controller: Th3MoukCMSPageBundle:PageAdmin
```

``` yml
# app/config/sonata/sonata_page.yml
sonata_page:
    class:
        page:     Application\Th3Mouk\CMSPageBundle\Entity\Page
        snapshot: Application\Th3Mouk\CMSPageBundle\Entity\Snapshot
        block:    Application\Th3Mouk\CMSPageBundle\Entity\Block
        site:     Application\Th3Mouk\CMSPageBundle\Entity\Site
```
Include them:

``` yml
# app/config/config.yml
imports:
    # Sonata Page Bundle
    - { resource: sonata/sonata_page.yml }

    # Override Vendors Parameters
    - { resource: bundles/override.yml }
```<commit_msg>[MOD] README.md<commit_after>CMS Page Bundle
===============

Bundle extending [SonataPageBundle](https://github.com/sonata-project/SonataPageBundle) in order to simplify the use by developers and future users, trying to not alter the original flexibility, and to give them new basic tools and views.

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/e11f072f-d128-459c-8100-e50bf565e99a/mini.png)](https://insight.sensiolabs.com/projects/e11f072f-d128-459c-8100-e50bf565e99a) [![Latest Stable Version](https://poser.pugx.org/th3mouk/cms-page-bundle/v/stable.svg)](https://packagist.org/packages/th3mouk/cms-page-bundle) [![Total Downloads](https://poser.pugx.org/th3mouk/cms-page-bundle/downloads.svg)](https://packagist.org/packages/th3mouk/cms-page-bundle) [![Latest Unstable Version](https://poser.pugx.org/th3mouk/cms-page-bundle/v/unstable.svg)](https://packagist.org/packages/th3mouk/cms-page-bundle) [![License](https://poser.pugx.org/th3mouk/cms-page-bundle/license.svg)](https://packagist.org/packages/th3mouk/cms-page-bundle)

## SonataPageBundle

The use of this bundle require understanding of the [SonataPageBundle](https://sonata-project.org/bundles/page/master/doc/index.html).


## Installation

### Composer

``` json
composer require th3mouk/cms-page-bundle ^1.1.0
```

### SonataPageBundle

Install the original [SonataPageBundle](https://sonata-project.org/bundles/page/master/doc/index.html).

### Easy extends

``` bash
app/console sonata:easy-extends:generate Th3MoukCMSPageBundle
```

### Update Kernel

``` php
# app/AppKernel.php
...
new Th3Mouk\CMSPageBundle\Th3MoukCMSPageBundle(),
new Application\Th3Mouk\CMSPageBundle\ApplicationTh3MoukCMSPageBundle(),
...
```

### Configuration

Create the following files:

``` yml
# app/config/bundles/override.yml
parameters:
    #Surcharge PageAdmin
    sonata.page.admin.page.class: Th3Mouk\CMSPageBundle\Admin\PageAdmin
    #Surcharge PageManager
    sonata.page.manager.page.class: Th3Mouk\CMSPageBundle\Entity\PageManager
    #Surcharge Transformer car sinon les attributs additionnel non serialisés
    sonata.page.transformer.class: Th3Mouk\CMSPageBundle\Entity\Transformer
    #Surcharge PageAdminController
    sonata.page.admin.page.controller: Th3MoukCMSPageBundle:PageAdmin
```

``` yml
# app/config/sonata/sonata_page.yml
sonata_page:
    class:
        page:     Application\Th3Mouk\CMSPageBundle\Entity\Page
        snapshot: Application\Th3Mouk\CMSPageBundle\Entity\Snapshot
        block:    Application\Th3Mouk\CMSPageBundle\Entity\Block
        site:     Application\Th3Mouk\CMSPageBundle\Entity\Site
```
Include them:

``` yml
# app/config/config.yml
imports:
    # Sonata Page Bundle
    - { resource: sonata/sonata_page.yml }

    # Override Vendors Parameters
    - { resource: bundles/override.yml }
```

## Please

Feel free to improve all of this work, project or bundles.
{'fraction_non_alphanumeric': 0.13720316622691292, 'fraction_numerical': 0.024098504837291118, 'mean_word_length': 4.720321931589537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 26, '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': '1579835', 'n_tokens_mistral': 2138, 'n_tokens_neox': 1919, 'n_words': 289}