Skip to content

Commit

Permalink
fix composer script and readme ttypo
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag committed May 15, 2015
1 parent 489be14 commit cc0725e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
9 changes: 6 additions & 3 deletions Composer/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,22 @@

use Sensio\Bundle\DistributionBundle\Composer\ScriptHandler as BaseHandler;

use Composer\Script\CommandEvent;

/**
* @author Al Ganiev, original from LiipMonitorBundle by @pulse00
* Composer ScriptHandler can be used to run postInstall/postUpdate dump emoticons
* when running composer.phar update/install.
*/
class ScriptHandler extends BaseHandler
{
public static function installEmoticons($event)
public static function installEmoticons(CommandEvent $event)
{
$options = self::getOptions($event);
$appDir = $options['symfony-app-dir'];
// use Symfony 3.0 dir structure if available
$consoleDir = isset($options['symfony-bin-dir']) ? $options['symfony-bin-dir'] : $options['symfony-app-dir'];
$event->getIO()->write('<info>Dumping emoticons...</info>');
static::executeCommand($event, $appDir, 'bbcode:dump');
static::executeCommand($event, $consoleDir, 'bbcode:dump');
}

}
Expand Down
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
FMBBCodeBundle
==============

[![Build Status](https://travis-ci.org/helios-ag/FMBbCodeBundle.png?branch=master)](https://travis-ci.org/helios-ag/FMBbCodeBundle)
[![Total Downloads](https://poser.pugx.org/helios-ag/fm-bbcode-bundle/d/total.png)](https://packagist.org/packages/helios-ag/fm-bbcode-bundle)
[![Latest Stable Version](https://poser.pugx.org/helios-ag/fm-bbcode-bundle/version.png)](https://packagist.org/packages/helios-ag/fm-bbcode-bundle)
[![Dependency Status](https://www.versioneye.com/user/projects/53db56c04b3ac87d6a000207/badge.svg?style=flat)](https://www.versioneye.com/user/projects/53db56c04b3ac87d6a000207)

[PHP-Decoda](https://github.com/milesj/decoda) integration in Symfony2

A lightweight lexical string parser for BBCode styled markup.
### Gitter chat ###

[![Join the chat at https://gitter.im/helios-ag/FMBbCodeBundle](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/helios-ag/FMBbCodeBundle?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

### Code Quality Assurance ###

| SensioLabs Insight | Travis CI | Scrutinizer CI|
| ------------------------|-------------|-----------------|
| [![SensioLabsInsight](https://insight.sensiolabs.com/projects/f355c58b-f9b6-482c-8d2d-d1bc8791c9e5/big.png)](https://insight.sensiolabs.com/projects/f355c58b-f9b6-482c-8d2d-d1bc8791c9e5) |[![Build Status](https://travis-ci.org/helios-ag/FMBbCodeBundle.png?branch=master)](https://travis-ci.org/helios-ag/FMBbCodeBundle)|[![Build Status](https://scrutinizer-ci.com/g/helios-ag/FMBbCodeBundle/badges/build.png?b=scrutinizer-enabled)](https://scrutinizer-ci.com/g/helios-ag/FMBbCodeBundle/build-status/scrutinizer-enabled)[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/helios-ag/FMBbCodeBundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/helios-ag/FMBbCodeBundle/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/helios-ag/FMBbCodeBundle/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/helios-ag/FMBbCodeBundle/?branch=master)

[![Dependency Status](https://www.versioneye.com/user/projects/53db56c04b3ac87d6a000207/badge.svg?style=flat)](https://www.versioneye.com/user/projects/53db56c04b3ac87d6a000207)
[![Latest Stable Version](https://poser.pugx.org/helios-ag/fm-bbcode-bundle/version.png)](https://packagist.org/packages/helios-ag/fm-bbcode-bundle)
[![Total Downloads](https://poser.pugx.org/helios-ag/fm-bbcode-bundle/d/total.png)](https://packagist.org/packages/helios-ag/fm-bbcode-bundle)


## Installation

Expand All @@ -32,7 +23,7 @@ Or you can use composer to install this bundle:
Add FMBbcodeBundle in your composer.json:

```sh
composer require helios-ag/fm-bbcode-bundle
composer require helios-ag/fm-elfinder-bundle
```

Now tell composer to download the bundle by running the command:
Expand Down Expand Up @@ -249,7 +240,7 @@ Add the following commands to you projects composer.json:
}
```

To custumize emoticons assets folders, use `path` and `folder` node configuration:
To customize emoticons assets folders, use `path` and `folder` node configuration:

```yaml
# app/config.yml
Expand All @@ -271,3 +262,5 @@ fm_bbcode:
* [predakanga](https://github.com/predakanga)
* Dan [piratadelfuturo](https://github.com/piratadelfuturo)
* Alexandre Quercia [alquerci](https://github.com/alquerci)


0 comments on commit cc0725e

Please sign in to comment.