<commit_before>Symfony2 Toolbar Bundle
=======================

This bundle provides simple toolbars for Symfony2 applications. The toolbars consist of buttons that may have icons, labels and accesskeys associated with them. The buttons may trigger GET or POST actions on URLs.

The toolbars have been designed to be quite similar to the toolbar concept in the MidCOM framework.

## Installation

Install this bundle by adding the following to the `deps` file and running `php bin/vendors install`:

    [MidgardToolbarBundle]
        git=git://github.com/bergie/MidgardToolbarBundle.git
        target=Midgard/ToolbarBundle

Then add the `Midgard` namespace to the `app/autoload.php`:

    'Midgard' => __DIR__.'/../vendor'

And enable this bundle in your Kernel:

    new Midgard\ToolbarBundle\MidgardToolbarBundle()

## Usage

Toolbars can be used either directly, or through a toolbar provider. Direct toolbars are useful for situations where you want for example to add a toolbar to each item in a listing. Toolbars used via the toolbar provider can be used for shared toolbars on a web application where different parts of the application may register their own actions into the toolbar.

### Direct toolbars<commit_msg>Link to the original MidCOM toolbar spec<commit_after>Symfony2 Toolbar Bundle
=======================

This bundle provides simple toolbars for Symfony2 applications. The toolbars consist of buttons that may have icons, labels and accesskeys associated with them. The buttons may trigger GET or POST actions on URLs.

The toolbars have been designed to be quite similar to [the toolbar concept in the MidCOM](http://www.midgard-project.org/development/mrfc/0026/) framework.

## Installation

Install this bundle by adding the following to the `deps` file and running `php bin/vendors install`:

    [MidgardToolbarBundle]
        git=git://github.com/bergie/MidgardToolbarBundle.git
        target=Midgard/ToolbarBundle

Then add the `Midgard` namespace to the `app/autoload.php`:

    'Midgard' => __DIR__.'/../vendor'

And enable this bundle in your Kernel:

    new Midgard\ToolbarBundle\MidgardToolbarBundle()

## Usage

Toolbars can be used either directly, or through a toolbar provider. Direct toolbars are useful for situations where you want for example to add a toolbar to each item in a listing. Toolbars used via the toolbar provider can be used for shared toolbars on a web application where different parts of the application may register their own actions into the toolbar.

### Direct toolbars
{'fraction_non_alphanumeric': 0.07097791798107256, 'fraction_numerical': 0.0031545741324921135, 'mean_word_length': 4.444206008583691, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '6755169', 'n_tokens_mistral': 680, 'n_tokens_neox': 623, 'n_words': 319}