Skip to content

Commit

Permalink
namespace change
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszCTO committed Mar 29, 2016
1 parent 42bdd43 commit 8cb50f6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 30 deletions.
Empty file modified LICENSE
100644 → 100755
Empty file.
9 changes: 8 additions & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ composer require darkin1/intercom
And add the service provider in `config/app.php`:

```php
App\Custom\Intercom\IntercomServiceProvider::class,
Darkin1\Intercom\IntercomServiceProvider::class,,
```

Configuration
Expand All @@ -31,3 +31,10 @@ return [
'api_key' => env('INTERCOM_API_KEY', '********'),
];
```


Documentation
-------------

[Intercom API](https://github.com/intercom/intercom-php)

2 changes: 1 addition & 1 deletion composer.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"autoload": {
"psr-0": {
"Darkin1\\Intercom": "lib/"
"Darkin1\\Intercom\\": "lib/"
}
},
"minimum-stability": "dev"
Expand Down
1 change: 0 additions & 1 deletion lib/Intercom.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Darkin1\Intercom;


use Illuminate\Support\Facades\Facade;

class Intercom extends Facade
Expand Down
22 changes: 3 additions & 19 deletions lib/IntercomApi.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
use Intercom\IntercomBasicAuthClient;

/**
* test e
* Class IntercomApi
* @package App\Custom\Intercom
* @package Darkin1\Intercom
*/
class IntercomApi
{
Expand All @@ -26,29 +25,14 @@ public function __construct(IntercomBasicAuthClient $intercom)


/**
* @param $method
* @param $method
* @param array $args
*
* @return mixed
*/
public function __call($method, array $args)
{
return call_user_func_array([$this->intercom, $method], $args);
}

/**
* @param array $event
*/
// public function createEvent($event = [])
// {
//
// if (!isset($event['email'])) {
// $event['email'] = Auth::user()->email;
// }
//
// if (!isset($event['created_at'])) {
// $event['created_at'] = time();
// }
//
// return $this->intercom->createEvent($event);
// }
}
8 changes: 0 additions & 8 deletions lib/IntercomServiceProvider.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: dariusz
* Date: 26.03.16
* Time: 13:40
*/

namespace Darkin1\Intercom;


use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Config;
use Intercom\IntercomBasicAuthClient;
Expand Down

0 comments on commit 8cb50f6

Please sign in to comment.