-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
165 additions
and
142 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Vluzrmos\SlackApi\Contracts; | ||
|
||
interface SlackApi | ||
{ | ||
public function method($method, $url, $parameters); | ||
|
||
public function get($apiMethod, $parameters = []); | ||
|
||
public function post($apiMethod, $parameters = []); | ||
|
||
public function delete($apiMethod, $parameters = []); | ||
|
||
public function put($apiMethod, $parameters = []); | ||
|
||
public function patch($apiMethod, $parameters = []); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
<?php namespace Vluzrmos\SlackApi; | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
namespace Vluzrmos\SlackApi; | ||
|
||
class SlackApiFacade extends Facade{ | ||
use Illuminate\Support\Facades\Facade; | ||
|
||
class SlackApiFacade extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor(){ | ||
return 'slackapi'; | ||
protected static function getFacadeAccessor() | ||
{ | ||
return 'slackapi'; | ||
} | ||
} |
Oops, something went wrong.