PHPackages                             blast-project/utils-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. blast-project/utils-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

blast-project/utils-bundle
==========================

All kinds of goodies for the BlastCoreBundle

0.6.4(8y ago)15.4k8LGPL-3.0PHPPHP &gt;=7.1

Since Jan 10Pushed 8y ago3 watchersCompare

[ Source](https://github.com/blast-project/UtilsBundle)[ Packagist](https://packagist.org/packages/blast-project/utils-bundle)[ Docs](https://github.com/blast-project/UtilsBundle)[ RSS](/packages/blast-project-utils-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (12)Used By (8)

Blast UtilsBundle
=================

[](#blast-utilsbundle)

[![Build Status](https://camo.githubusercontent.com/ea238f6e924033dbeadfcaf9b00287b53335c1d5bc2d369e41ec77dbce7176f4/68747470733a2f2f7472617669732d63692e6f72672f626c6173742d70726f6a6563742f5574696c7342756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/blast-project/UtilsBundle)[![Coverage Status](https://camo.githubusercontent.com/b13cc8d05d7f8d7d57dd8054791226d0088020049481bd8663f4c002d3a90e88/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f626c6173742d70726f6a6563742f5574696c7342756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/blast-project/UtilsBundle?branch=master)[![License](https://camo.githubusercontent.com/15fa8c94562f70ee61509799101285ff5748ff463f6f6dec4134a4bf9d903726/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626c6173742d70726f6a6563742f5574696c7342756e646c652e7376673f7374796c653d666c61742d737175617265)](./LICENCE.md)

[![Latest Stable Version](https://camo.githubusercontent.com/888aaefed8d9b766acc62a00c21d434a4a3c8d72526ff47ab0d9fc3cf0f6479e/68747470733a2f2f706f7365722e707567782e6f72672f626c6173742d70726f6a6563742f7574696c732d62756e646c652f762f737461626c65)](https://packagist.org/packages/blast-project/utils-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/4150331b8667123571f60c820cd569cb9417b4dc93e43f567c1108b45e7104fe/68747470733a2f2f706f7365722e707567782e6f72672f626c6173742d70726f6a6563742f7574696c732d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/blast-project/utils-bundle)[![Total Downloads](https://camo.githubusercontent.com/2b296ee5748e5773f41ef6101489dba5d7fb6dd26a68362ad7e93d1ca83eadec/68747470733a2f2f706f7365722e707567782e6f72672f626c6173742d70726f6a6563742f7574696c732d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/blast-project/utils-bundle)

Features
--------

[](#features)

### Blast Choices

[](#blast-choices)

Documentation to be writen

### Blast Hooks

[](#blast-hooks)

This bundle introduce a hook feature that is really basic hook management.

You can define in your views any hook you want.

#### Declare the hook target location in a view

[](#declare-the-hook-target-location-in-a-view)

```
{# myTemplate.html.twig #}

    Here my custom hook
    {{ blast_hook('my.custom.hook', {'someParameters': myVar}) }}

```

A hook can be declared without using any parameters. If so, the « hook block » won't have any parameters defined in `handleParameters`'s method parameter (var `$hookParameters` will be an empty array).

#### Declare your Hook class

[](#declare-your-hook-class)

This class will manage rendering of the hook content by setting `view parameters` (act as a controller)

```
