<commit_before># kahlan-bundle
A ToolBox to use kahlan with symfony easily.

## Configuration :
Simply register the bundle in Symfony's kernel like any other bundle:
```php
// app/AppKernel.php
    public function registerBundles()
    {
        [...]

        if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
            [...]
            $bundles[] = new Elphtly\KahlanBundle\KahlanBundle();
        }

        return $bundles;
    }
```

## Usage :
Check [Kahlan's documentation](https://kahlan.github.io/docs/) for basic usage and principles.

### Added features :
**Service Container :**

Symfony's service container is available in every spec file with `$this->container`.

**Services shortcuts :**

Every service registered in your Symfony application is available in spec files with these shortcuts :
```php
$this->has('my.awesome.service'); // To check is service is available
$this->get('my.awesome.service'); // To retrieve service
```
<commit_msg>Fix typo<commit_after># kahlan-bundle
A ToolBox to use kahlan with symfony easily.

## Configuration :
Simply register the bundle in Symfony's kernel like any other bundle:
```php
// app/AppKernel.php
    public function registerBundles()
    {
        [...]

        if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
            [...]
            $bundles[] = new Elphantly\KahlanBundle\KahlanBundle();
        }

        return $bundles;
    }
```

## Usage :
Check [Kahlan's documentation](https://kahlan.github.io/docs/) for basic usage and principles.

### Added features :
**Service Container :**

Symfony's service container is available in every spec file with `$this->container`.

**Services shortcuts :**

Every service registered in your Symfony application is available in spec files with these shortcuts :
```php
$this->has('my.awesome.service'); // To check is service is available
$this->get('my.awesome.service'); // To retrieve service
```

{'fraction_non_alphanumeric': 0.1370843989769821, 'fraction_numerical': 0.0, 'mean_word_length': 3.4054054054054053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3120668', 'n_tokens_mistral': 576, 'n_tokens_neox': 553, 'n_words': 181}