<commit_before>QueueDoctrine
=============

Example usage [zf-queue](https://github.com/bupy7/zf-queue) package for Doctrine 2 ORM.

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

- [Doctrine 2 ORM](https://github.com/doctrine/DoctrineORMModule)
- [Zend MVC](https://github.com/zendframework/zend-mvc)

Install
-------

1. Copy `QueueDoctrine` to your `module` directory.

2. Add `QueueDoctrine` to your config of module list.

4. Profit.

Usage
-----

1: [Create a task](https://github.com/bupy7/zf-queue#create-task)

2: Add the task to queue:

```php
$container->get('Bupy7\Queue\Service\TaskService')->add('Some\Task\TaskNameClass', [
    'some' => 'param', 
]);
```

3: Run queue:

```php
$container->get('Bupy7\Queue\Service\QueueService')->run();
```<commit_msg>added doc<commit_after>QueueDoctrine
=============

Example usage [zf-queue](https://github.com/bupy7/zf-queue) package for Doctrine 2 ORM.

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

- [Doctrine 2 ORM](https://github.com/doctrine/DoctrineORMModule)
- [Zend MVC](https://github.com/zendframework/zend-mvc)

Install
-------

1: Copy `QueueDoctrine` to your `module` directory.

2: Add `QueueDoctrine` to your config of module list.

3: Run create scheme:

```
$ console orm:schema-tool:create
```

> You must have console application to run this command.

4: Profit.

Usage
-----

1: [Create a task](https://github.com/bupy7/zf-queue#create-task)

2: Add the task to queue:

```php
$container->get('Bupy7\Queue\Service\TaskService')->add('Some\Task\TaskNameClass', [
    'some' => 'param', 
]);
```

3: Run queue:

```php
$container->get('Bupy7\Queue\Service\QueueService')->run();
```
{'fraction_non_alphanumeric': 0.20902906617192332, 'fraction_numerical': 0.015460729746444033, 'mean_word_length': 3.948012232415902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 8, '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': '3721928', 'n_tokens_mistral': 597, 'n_tokens_neox': 578, 'n_words': 124}