-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from PouleR/symfony-service
Symfony bundle
- Loading branch information
Showing
59 changed files
with
627 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
# Mac files | ||
.DS_Store | ||
|
||
# IDE Files | ||
.idea | ||
/nbproject/ | ||
|
||
# Composer | ||
/composer.phar | ||
/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
|
||
matrix: | ||
include: | ||
- php: 5.6 | ||
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=weak | ||
- php: 5.6 | ||
env: SYMFONY_VERSION='2.8.*' SYMFONY_DEPRECATIONS_HELPER=weak | ||
# Remove SYMFONY_DEPRECATIONS_HELPER when https://github.com/symfony/assetic-bundle/pull/395 is released. | ||
- php: 5.6 | ||
env: SYMFONY_VERSION='3.0.*' | ||
fast_finish: true | ||
|
||
install: | ||
- composer self-update | ||
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi | ||
- composer update --no-interaction --prefer-source $COMPOSER_FLAGS | ||
|
||
script: | ||
- phpunit --coverage-text --colors | ||
- php ./vendor/bin/phpcs --standard=psr2 Core/ DependencyInjection/ Exception/ Resources/ Service/ Tests/ FacebookMessengerBundle.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...enger/Core/Attachment/AudioAttachment.php → Core/Attachment/AudioAttachment.php
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?php | ||
|
||
namespace JK\FacebookMessenger\Core\Attachment; | ||
namespace PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
use JK\FacebookMessenger\Core\Attachment; | ||
use PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
/** | ||
* Class AudioAttachment | ||
* @package JK\FacebookMessenger\Core\Attachment | ||
* Class AudioAttachment. | ||
*/ | ||
class AudioAttachment extends Attachment | ||
{ | ||
/** | ||
* AudioAttachment constructor. | ||
* | ||
* @param $payload | ||
*/ | ||
public function __construct($payload = null) | ||
{ | ||
// Invoke parent constructor and force type value | ||
parent::__construct(Attachment::TYPE_AUDIO, $payload); | ||
} | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
...senger/Core/Attachment/FileAttachment.php → Core/Attachment/FileAttachment.php
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?php | ||
|
||
namespace JK\FacebookMessenger\Core\Attachment; | ||
namespace PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
use JK\FacebookMessenger\Core\Attachment; | ||
use PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
/** | ||
* Class FileAttachment | ||
* @package JK\FacebookMessenger\Core\Attachment | ||
* Class FileAttachment. | ||
*/ | ||
class FileAttachment extends Attachment | ||
{ | ||
/** | ||
* FileAttachment constructor. | ||
* | ||
* @param $payload | ||
*/ | ||
public function __construct($payload = null) | ||
{ | ||
// Invoke parent constructor and force type value | ||
parent::__construct(Attachment::TYPE_FILE, $payload); | ||
} | ||
} | ||
} |
16 changes: 5 additions & 11 deletions
16
...enger/Core/Attachment/ImageAttachment.php → Core/Attachment/ImageAttachment.php
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: john | ||
* Date: 2016/06/14 | ||
* Time: 9:46 AM | ||
*/ | ||
|
||
namespace JK\FacebookMessenger\Core\Attachment; | ||
namespace PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
use JK\FacebookMessenger\Core\Attachment; | ||
use PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
/** | ||
* Class ImageAttachment | ||
* @package JK\FacebookMessenger\Core\Attachment | ||
* Class ImageAttachment. | ||
*/ | ||
class ImageAttachment extends Attachment | ||
{ | ||
/** | ||
* ImageAttachment constructor. | ||
* | ||
* @param $payload | ||
*/ | ||
public function __construct($payload = null) | ||
{ | ||
// Invoke parent constructor and force type value | ||
parent::__construct(Attachment::TYPE_IMAGE, $payload); | ||
} | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
...er/Core/Attachment/TemplateAttachment.php → Core/Attachment/TemplateAttachment.php
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?php | ||
|
||
namespace JK\FacebookMessenger\Core\Attachment; | ||
namespace PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
use JK\FacebookMessenger\Core\Attachment; | ||
use PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
/** | ||
* Class TemplateAttachment | ||
* @package JK\FacebookMessenger\Core\Attachment | ||
* Class TemplateAttachment. | ||
*/ | ||
class TemplateAttachment extends Attachment | ||
{ | ||
/** | ||
* TemplateAttachment constructor. | ||
* | ||
* @param null $payload | ||
*/ | ||
public function __construct($payload = null) | ||
{ | ||
// Invoke parent constructor and force type value | ||
parent::__construct(Attachment::TYPE_TEMPLATE, $payload); | ||
} | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
...enger/Core/Attachment/VideoAttachment.php → Core/Attachment/VideoAttachment.php
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<?php | ||
|
||
namespace JK\FacebookMessenger\Core\Attachment; | ||
namespace PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
use JK\FacebookMessenger\Core\Attachment; | ||
use PouleR\FacebookMessengerBundle\Core\Attachment; | ||
|
||
/** | ||
* Class VideoAttachment | ||
* @package JK\FacebookMessenger\Core\Attachment | ||
* Class VideoAttachment. | ||
*/ | ||
class VideoAttachment extends Attachment | ||
{ | ||
/** | ||
* VideoAttachment constructor. | ||
* | ||
* @param $payload | ||
*/ | ||
public function __construct($payload = null) | ||
{ | ||
// Invoke parent constructor and force type value | ||
parent::__construct(Attachment::TYPE_VIDEO, $payload); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...ebookMessenger/Core/Callback/Callback.php → Core/Callback/Callback.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.