Skip to content

Commit b3fe52d

Browse files
author
Alexey Samara
committedDec 5, 2017
Version 3.1.0 (view CHANGELOG.md)
1 parent 6b7dcc0 commit b3fe52d

23 files changed

+356
-109
lines changed
 

‎.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_size = 4
9+
indent_style = space
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

‎.scrutinizer.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
filter:
2+
excluded_paths: [tests/*]
3+
4+
checks:
5+
php:
6+
code_rating: true
7+
duplication: true
8+
remove_extra_empty_lines: true
9+
remove_php_closing_tag: true
10+
remove_trailing_whitespace: true
11+
fix_use_statements:
12+
remove_unused: true
13+
preserve_multiple: false
14+
preserve_blanklines: true
15+
order_alphabetically: true
16+
fix_php_opening_tag: true
17+
fix_linefeed: true
18+
fix_line_ending: true
19+
fix_identation_4spaces: true
20+
fix_doc_comments: true

‎.styleci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
preset: psr2
2+
3+
enabled:
4+
- concat_with_spaces

‎.travis.yml

+28-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,36 @@
11
os: linux
2+
23
language: php
4+
35
php:
46
- 7.0
7+
58
install: true
9+
610
sudo: false
11+
712
branches:
813
only:
9-
- master
14+
- master
15+
16+
cache:
17+
directories:
18+
- $HOME/.composer/cache
19+
20+
env:
21+
matrix:
22+
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
23+
24+
before_script:
25+
- travis_retry composer self-update
26+
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
27+
28+
script:
29+
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
30+
31+
after_script:
32+
- |
33+
if [[ "$TRAVIS_PHP_VERSION" != '7.0' ]]; then
34+
wget https://scrutinizer-ci.com/ocular.phar
35+
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
36+
fi

‎CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## [3.1.0] - 2017-12-05
8+
### Added
9+
- Compatibility for Symfony 3.1 up to 4.0 ([issue #1](https://github.com/wow-apps/symfony-slack-bot/issues/1))
10+
- Message validation
11+
- Custom exceptions
12+
- Travis CI tests
13+
- Missing phpDocs
14+
15+
### Changed
16+
- Namespaces from `Wowapps` to `WowApps` for a single standard of all my Bundles
17+
- Config parameter from `wowapps_slack` to `wow_apps_slack` for a single standard of all my Bundles
18+
- Test command from `slackbot:test` to `wowapps:slackbot:test` for a single standard of all my Bundles
19+
20+
### Removed
21+
- Unused Controller
22+
- Empty tests

‎Command/SlackbotTestCommand.php

+22-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,38 @@
11
<?php
2-
3-
namespace Wowapps\SlackBundle\Command;
2+
/**
3+
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony 3
4+
* https://github.com/wow-apps/symfony-slack-bot
5+
*
6+
* (c) 2016 WoW-Apps
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace WowApps\SlackBundle\Command;
413

514
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
615
use Symfony\Component\Console\Input\InputInterface;
716
use Symfony\Component\Console\Output\OutputInterface;
817
use Symfony\Component\Console\Style\SymfonyStyle;
9-
use Wowapps\SlackBundle\DTO\SlackMessage;
10-
use Wowapps\SlackBundle\Service\SlackBot;
11-
use Wowapps\SlackBundle\Traits\SlackMessageTrait;
12-
18+
use WowApps\SlackBundle\DTO\SlackMessage;
19+
use WowApps\SlackBundle\Service\SlackBot;
20+
use WowApps\SlackBundle\Traits\SlackMessageTrait;
21+
22+
/**
23+
* Class SlackbotTestCommand
24+
*
25+
* @author Alexey Samara <lion.samara@gmail.com>
26+
* @package WowApps\SlackBundle
27+
*/
1328
class SlackbotTestCommand extends ContainerAwareCommand
1429
{
1530
use SlackMessageTrait;
1631

1732
protected function configure()
1833
{
1934
$this
20-
->setName('slackbot:test')
35+
->setName('wowapps:slackbot:test')
2136
->setDescription('Test your settings and try to send messages')
2237
;
2338
}

‎Controller/DefaultController.php

-16
This file was deleted.

‎DTO/SlackMessage.php

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
<?php
2-
3-
namespace Wowapps\SlackBundle\DTO;
4-
5-
use Wowapps\SlackBundle\Traits\SlackMessageTrait;
6-
2+
/**
3+
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony 3
4+
* https://github.com/wow-apps/symfony-slack-bot
5+
*
6+
* (c) 2016 WoW-Apps
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace WowApps\SlackBundle\DTO;
13+
14+
use WowApps\SlackBundle\Traits\SlackMessageTrait;
15+
16+
/**
17+
* Class SlackMessage
18+
*
19+
* @author Alexey Samara <lion.samara@gmail.com>
20+
* @package WowApps\SlackBundle
21+
*/
722
class SlackMessage
823
{
924
use SlackMessageTrait;
@@ -35,7 +50,6 @@ class SlackMessage
3550
/** @var string */
3651
private $sender;
3752

38-
3953
/**
4054
* SlackMessage constructor.
4155
* @param string $icon

‎DependencyInjection/Configuration.php

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
<?php
2+
/**
3+
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony 3
4+
* https://github.com/wow-apps/symfony-slack-bot
5+
*
6+
* (c) 2016 WoW-Apps
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
211

3-
namespace Wowapps\SlackBundle\DependencyInjection;
12+
namespace WowApps\SlackBundle\DependencyInjection;
413

514
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
615
use Symfony\Component\Config\Definition\ConfigurationInterface;
716

817
/**
9-
* This is the class that validates and merges configuration from your app/config files.
10-
*
11-
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html}
18+
* Class Configuration
19+
* @author Alexey Samara <lion.samara@gmail.com>
20+
* @package WowApps\SlackBundle
1221
*/
1322
class Configuration implements ConfigurationInterface
1423
{
@@ -18,7 +27,7 @@ class Configuration implements ConfigurationInterface
1827
public function getConfigTreeBuilder()
1928
{
2029
$treeBuilder = new TreeBuilder();
21-
$rootNode = $treeBuilder->root('wowapps_slack');
30+
$rootNode = $treeBuilder->root('wow_apps_slack');
2231
$rootNode
2332
->children()
2433
->scalarNode('api_url')->defaultValue('')->end()

‎DependencyInjection/WowappsSlackExtension.php ‎DependencyInjection/WowAppsSlackExtension.php

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
<?php
2+
/**
3+
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony 3
4+
* https://github.com/wow-apps/symfony-slack-bot
5+
*
6+
* (c) 2016 WoW-Apps
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
211

3-
namespace Wowapps\SlackBundle\DependencyInjection;
12+
namespace WowApps\SlackBundle\DependencyInjection;
413

514
use Symfony\Component\DependencyInjection\ContainerBuilder;
615
use Symfony\Component\Config\FileLocator;
716
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
817
use Symfony\Component\DependencyInjection\Loader;
918

1019
/**
11-
* This is the class that loads and manages your bundle configuration.
20+
* Class WowAppsSlackExtension
1221
*
13-
* @link http://symfony.com/doc/current/cookbook/bundles/extension.html
22+
* @author Alexey Samara <lion.samara@gmail.com>
23+
* @package WowApps\SlackBundle
1424
*/
15-
class WowappsSlackExtension extends Extension
25+
class WowAppsSlackExtension extends Extension
1626
{
1727
/**
1828
* {@inheritdoc}

‎Exception/SlackbotException.php

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony 3
4+
* https://github.com/wow-apps/symfony-slack-bot
5+
*
6+
* (c) 2016 WoW-Apps
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace WowApps\SlackBundle\Exception;
13+
14+
use Psr\Log\InvalidArgumentException;
15+
16+
/**
17+
* Class SlackbotException
18+
*
19+
* @author Alexey Samara <lion.samara@gmail.com>
20+
* @package WowApps\SlackBundle
21+
*/
22+
class SlackbotException extends InvalidArgumentException
23+
{
24+
const E_EMPTY_MESSAGE = "Message can't be empty";
25+
}

‎README.md

+23-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/9e427ba8-ceee-47a4-aeef-a788b9875064/big.png)](https://insight.sensiolabs.com/projects/9e427ba8-ceee-47a4-aeef-a788b9875064)
44

55
[![Packagist Pre Release](https://img.shields.io/packagist/v/wow-apps/symfony-slack-bot.svg?maxAge=2592000?style=flat-square)](https://packagist.org/packages/wow-apps/symfony-slack-bot)
6-
[![AppVeyor](https://img.shields.io/appveyor/ci/gruntjs/grunt.svg?maxAge=2592000?style=flat-square)]()
6+
[![Build Status](https://scrutinizer-ci.com/g/wow-apps/symfony-slack-bot/badges/build.png?b=master)](https://scrutinizer-ci.com/g/wow-apps/symfony-slack-bot/build-status/master)
77
[![PHP version](https://img.shields.io/badge/PHP-%5E7.0-blue.svg?style=flat-square)](http://php.net/manual/ru/migration70.new-features.php)
88
[![Symfony version](https://img.shields.io/badge/Symfony-%5E3.0-green.svg?style=flat-square)](http://symfony.com/)
99
[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg?style=flat-square)](https://raw.githubusercontent.com/wow-apps/symfony-slack-bot/master/LICENSE)
1010
[![Coding Style](https://img.shields.io/badge/Coding%20Style-PSR--2-brightgreen.svg)](http://www.php-fig.org/psr/psr-2/)
1111
[![Code Climate](https://codeclimate.com/github/wow-apps/symfony-slack-bot/badges/gpa.svg)](https://codeclimate.com/github/wow-apps/symfony-slack-bot)
1212
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ce3fffd811f2463a94ed4065a341885a)](https://www.codacy.com/app/lion-samara/symfony-slack-bot?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=wow-apps/symfony-slack-bot&amp;utm_campaign=Badge_Grade)
13+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/wow-apps/symfony-slack-bot/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/wow-apps/symfony-slack-bot/?branch=master)
1314
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/9e427ba8-ceee-47a4-aeef-a788b9875064/mini.png)](https://insight.sensiolabs.com/projects/9e427ba8-ceee-47a4-aeef-a788b9875064)
14-
[![Twitter](https://img.shields.io/twitter/url/https/github.com/wow-apps/symfony-slack-bot.svg?style=social?style=flat-square)](https://twitter.com/intent/tweet?text=SlackBot+for+Symfony+3&url=%5Bobject%20Object%5D)
1515

1616

1717
# SlackBot for Symfony 3
@@ -49,7 +49,7 @@ public function registerBundles()
4949
{
5050
$bundles = array(
5151
// ...
52-
new Wowapps\SlackBundle\WowappsSlackBundle(),
52+
new WowApps\SlackBundle\WowAppsSlackBundle(),
5353
);
5454

5555
// ...
@@ -63,7 +63,7 @@ public function registerBundles()
6363

6464
```yaml
6565
# SlackBot Configuration
66-
wowapps_slack:
66+
wow_apps_slack:
6767
api_url: ""
6868
default_icon: "http://cdn.wow-apps.pro/slackbot/slack-bot-icon-48.png"
6969
default_channel: "general"
@@ -80,7 +80,7 @@ wowapps_slack:
8080
To test your configuration, send test message by next command:
8181
8282
```bash
83-
php ./bin/console slackbot:test
83+
php ./bin/console wowapps:slackbot:test
8484
```
8585

8686
![Test command result preview](http://cdn.wow-apps.pro/slackbot/slackbot_preview.jpg)
@@ -92,3 +92,21 @@ php ./bin/console slackbot:test
9292
* [Installation](https://github.com/wow-apps/symfony-slack-bot/wiki/1.-Installation)
9393
* [Using SlackBot](https://github.com/wow-apps/symfony-slack-bot/wiki/2.-Using-SlackBot)
9494
* [Additional helpers](https://github.com/wow-apps/symfony-slack-bot/wiki/3.-Additional-helpers)
95+
96+
# News and updates:
97+
98+
Follow news and updates in my Telegram channel [@wow_apps_pro](https://t.me/wow_apps_pro)
99+
100+
# Changelog:
101+
102+
* 3.1.0
103+
* Added compatibility for Symfony 3.1 up to 4.0 ([issue #1](https://github.com/wow-apps/symfony-slack-bot/issues/1))
104+
* Added message validation
105+
* Added custom exceptions
106+
* Added Travis CI tests
107+
* Added missing phpDocs
108+
* Changed namespaces from `Wowapps` to `WowApps` for a single standard of all my Bundles
109+
* Changed config parameter from `wowapps_slack` to `wow_apps_slack` for a single standard of all my Bundles
110+
* Changed test command from `slackbot:test` to `wowapps:slackbot:test` for a single standard of all my Bundles
111+
* Removed unused Controller
112+
* Removed empty tests

‎Resources/config/services.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
services:
22
wowapps.slackbot:
3-
class: Wowapps\SlackBundle\Service\SlackBot
4-
arguments: [%wowapps.slackbot.config%]
3+
class: WowApps\SlackBundle\Service\SlackBot
4+
arguments:
5+
- "%wowapps.slackbot.config%"
6+
- "@wowapps.slackbot.validator"
7+
8+
wowapps.slackbot.validator:
9+
class: WowApps\SlackBundle\Service\SlackMessageValidator

‎Resources/doc/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function registerBundles()
2727
{
2828
$bundles = array(
2929
// ...
30-
new Wowapps\SlackBundle\WowappsSlackBundle(),
30+
new WowApps\SlackBundle\WowAppsSlackBundle(),
3131
);
3232
3333
// ...
@@ -41,7 +41,7 @@ public function registerBundles()
4141

4242
```yaml
4343
# SlackBot Configuration
44-
wowapps_slack:
44+
wow_apps_slack:
4545
api_url: ""
4646
default_icon: "http://cdn.wow-apps.pro/slackbot/slack-bot-icon-48.png"
4747
default_channel: "general"
@@ -58,7 +58,7 @@ wowapps_slack:
5858
To test your configuration, send test message by next command:
5959

6060
```bash
61-
php ./bin/console slackbot:test
61+
php ./bin/console wowapps:slackbot:test
6262
```
6363

6464
![Test command result preview](http://cdn.wow-apps.pro/slackbot/slackbot_preview.jpg)

‎Resources/doc/usingSlackBot.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## Create message
22

33
```php
4-
use Wowapps\SlackBundle\DTO\SlackMessage;
5-
use Wowapps\SlackBundle\Service\SlackBot;
4+
use WowApps\SlackBundle\DTO\SlackMessage;
5+
use WowApps\SlackBundle\Service\SlackBot;
66
```
77

88
### Fill DTO:

‎Resources/views/Default/index.html.twig

-1
This file was deleted.

‎Service/SlackBot.php

+32-26
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
<?php
2-
3-
namespace Wowapps\SlackBundle\Service;
2+
/**
3+
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony 3
4+
* https://github.com/wow-apps/symfony-slack-bot
5+
*
6+
* (c) 2016 WoW-Apps
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace WowApps\SlackBundle\Service;
413

514
use GuzzleHttp\Client as GuzzleClient;
6-
use Wowapps\SlackBundle\DTO\SlackMessage;
7-
15+
use WowApps\SlackBundle\DTO\SlackMessage;
16+
17+
/**
18+
* Class SlackBot
19+
*
20+
* @author Alexey Samara <lion.samara@gmail.com>
21+
* @package WowApps\SlackBundle
22+
*/
823
class SlackBot
924
{
1025
const QUOTE_DEFAULT = 0;
@@ -19,10 +34,20 @@ class SlackBot
1934
/** @var GuzzleClient */
2035
private $guzzleClient;
2136

22-
public function __construct(array $config)
37+
/** @var SlackMessageValidator */
38+
private $validator;
39+
40+
/**
41+
* SlackBot constructor.
42+
*
43+
* @param array $config
44+
* @param SlackMessageValidator $validator
45+
*/
46+
public function __construct(array $config, SlackMessageValidator $validator)
2347
{
2448
$this->setConfig($config);
2549
$this->guzzleClient = new GuzzleClient();
50+
$this->validator = $validator;
2651
}
2752

2853
/**
@@ -81,31 +106,12 @@ public function sendMessage(SlackMessage $slackMessage): bool
81106
/**
82107
* @param SlackMessage $slackMessage
83108
* @return string
84-
* @throws \InvalidArgumentException
85109
*/
86110
private function buildPostBody(SlackMessage $slackMessage): string
87111
{
88-
if (!$slackMessage->getText()) {
89-
throw new \InvalidArgumentException('Message can\'t be empty');
90-
}
91-
92-
if (!$slackMessage->getIcon()) {
93-
$return['icon_url'] = $this->config['default_icon'];
94-
} else {
95-
$return['icon_url'] = $slackMessage->getIcon();
96-
}
112+
$this->validator->validateMessage($slackMessage);
97113

98-
if (!$slackMessage->getRecipient()) {
99-
$return['channel'] = $this->config['default_channel'];
100-
} else {
101-
$return['channel'] = $slackMessage->getRecipient();
102-
}
103-
104-
if (!$slackMessage->getSender()) {
105-
$return['username'] = 'SlackBot';
106-
} else {
107-
$return['username'] = $slackMessage->getSender();
108-
}
114+
$slackMessage = $this->validator->setDefaultsForEmptyFields($slackMessage, $this->getConfig());
109115

110116
$return['text'] = $slackMessage->getText();
111117
$return['mrkdwn'] = true;

‎Service/SlackMessageValidator.php

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?php
2+
/**
3+
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony 3
4+
* https://github.com/wow-apps/symfony-slack-bot
5+
*
6+
* (c) 2016 WoW-Apps
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace WowApps\SlackBundle\Service;
13+
14+
use WowApps\SlackBundle\DTO\SlackMessage;
15+
use WowApps\SlackBundle\Exception\SlackbotException;
16+
17+
/**
18+
* Class SlackMessageValidator
19+
*
20+
* @author Alexey Samara <lion.samara@gmail.com>
21+
* @package WowApps\SlackBundle
22+
*/
23+
class SlackMessageValidator
24+
{
25+
/**
26+
* Validate fields
27+
*
28+
* @param SlackMessage $slackMessage
29+
* @return void
30+
*/
31+
public function validateMessage(SlackMessage $slackMessage)
32+
{
33+
if (!$slackMessage->getText()) {
34+
throw new SlackbotException(SlackbotException::E_EMPTY_MESSAGE);
35+
}
36+
}
37+
38+
/**
39+
* Setting default values for empty fields
40+
*
41+
* @param SlackMessage $slackMessage
42+
* @param array $config
43+
* @return SlackMessage
44+
*/
45+
public function setDefaultsForEmptyFields(SlackMessage $slackMessage, array $config): SlackMessage
46+
{
47+
if (!$slackMessage->getIcon()) {
48+
$slackMessage->setIcon($config['default_icon']);
49+
}
50+
51+
if (!$slackMessage->getRecipient()) {
52+
$slackMessage->setRecipient($config['default_channel']);
53+
}
54+
55+
if (!$slackMessage->getSender()) {
56+
$slackMessage->setSender('SlackBot');
57+
}
58+
59+
return $slackMessage;
60+
}
61+
}

‎Tests/Controller/DefaultControllerTest.php

-17
This file was deleted.

‎Traits/SlackMessageTrait.php

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
<?php
2-
3-
namespace Wowapps\SlackBundle\Traits;
4-
2+
/**
3+
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony 3
4+
* https://github.com/wow-apps/symfony-slack-bot
5+
*
6+
* (c) 2016 WoW-Apps
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace WowApps\SlackBundle\Traits;
13+
14+
/**
15+
* Trait SlackMessageTrait
16+
*
17+
* @author Alexey Samara <lion.samara@gmail.com>
18+
* @package WowApps\SlackBundle
19+
*/
520
trait SlackMessageTrait
621
{
722
/**

‎WowAppsSlackBundle.php

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* This file is part of the WoW-Apps/Symfony-Slack-Bot bundle for Symfony 3
4+
* https://github.com/wow-apps/symfony-slack-bot
5+
*
6+
* (c) 2016 WoW-Apps
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace WowApps\SlackBundle;
13+
14+
use Symfony\Component\HttpKernel\Bundle\Bundle;
15+
16+
/**
17+
* Class WowAppsSlackBundle
18+
*
19+
* @author Alexey Samara <lion.samara@gmail.com>
20+
* @package WowApps\SlackBundle
21+
*/
22+
class WowAppsSlackBundle extends Bundle
23+
{
24+
}

‎WowappsSlackBundle.php

-9
This file was deleted.

‎composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name" : "Alexey Samara",
88
"role": "lead",
99
"email" : "lion.samara@gmail.com",
10-
"homepage": "https://github.com/wow-apps"
10+
"homepage": "https://wow-apps.pro"
1111
}],
1212
"support": {
1313
"issues": "https://github.com/wow-apps/symfony-slack-bot/issues",
@@ -31,7 +31,7 @@
3131
},
3232
"autoload" : {
3333
"psr-4" : {
34-
"Wowapps\\SlackBundle\\" : ""
34+
"WowApps\\SlackBundle\\" : ""
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)
Please sign in to comment.