<commit_before># FSi DataGrid Bundle #

Main purpose of this bundle is to register ``FSi DataGrid Component`` service
and twig rendering functions.

#Installation#

* Download DataGridBundle
* Enable the bundle
* Configure the DataGridBundle in config.yaml

### Step1: Download DataGridBundle ###

Add to composer.json

```

"require": {
    "fsi/datagrid-bundle": "0.9.*
}

```

### Step2: Enable the bundle ###

```

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FSi\Bundle\DataGridBundle\DataGridBundle(),
    );
}

```

### Step3: Configure the DataGridBundle in config.yaml ###

Add to config.yaml

```
fsi_data_grid:
    twig: ~
```

# Usage #

Basic DataGrid usage.

```

<?php

namespace FSi\Bundle\DemoBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

class DefaultController extends Controller
{
    /**
     * @Route("/", name="demo_index")
     * @Template()
     */
    public function indexAction()
    {
        $array = $this->getDoctrine()->getManager()
            ->getRepository('FSiSiteBundle:News')
            ->findAll();<commit_msg>Removed unnecessary info about configuration from README.md<commit_after># FSi DataGrid Bundle #

Main purpose of this bundle is to register ``FSi DataGrid Component`` service
and twig rendering functions.

#Installation#

* Download DataGridBundle
* Enable the bundle
* Configure the DataGridBundle in config.yaml

### Step1: Download DataGridBundle ###

Add to composer.json

```

"require": {
    "fsi/datagrid-bundle": "0.9.*
}

```

### Step2: Enable the bundle ###

```

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FSi\Bundle\DataGridBundle\DataGridBundle(),
    );
}

```

# Usage #

Basic DataGrid usage.

```

<?php

namespace FSi\Bundle\DemoBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

class DefaultController extends Controller
{
    /**
     * @Route("/", name="demo_index")
     * @Template()
     */
    public function indexAction()
    {
        $array = $this->getDoctrine()->getManager()
            ->getRepository('FSiSiteBundle:News')
            ->findAll();
{'fraction_non_alphanumeric': 0.13416599516518937, 'fraction_numerical': 0.0036261079774375505, 'mean_word_length': 3.5063520871143377, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '3536538', 'n_tokens_mistral': 768, 'n_tokens_neox': 754, 'n_words': 176}