Skip to content

Commit c755d15

Browse files
committed
Update to Laravel 5
1 parent 654443e commit c755d15

File tree

2 files changed

+36
-25
lines changed

2 files changed

+36
-25
lines changed

README.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Asana for Laravel
1+
# Asana for Laravel 5
22

33
[![Latest Stable Version](https://poser.pugx.org/torann/laravel-asana/v/stable.png)](https://packagist.org/packages/torann/laravel-asana) [![Total Downloads](https://poser.pugx.org/torann/laravel-asana/downloads.png)](https://packagist.org/packages/torann/laravel-asana)
44

@@ -8,29 +8,41 @@
88

99
- [Laravel Asana on Packagist](https://packagist.org/packages/torann/laravel-asana)
1010
- [Laravel Asana on GitHub](https://github.com/torann/laravel-asana)
11+
- [Laravel 4 Installation](https://github.com/Torann/laravel-asana/tree/0.1.1)
1112

1213
To get the latest version of Laravel Asana simply require it in your `composer.json` file.
1314

1415
~~~
15-
"torann/laravel-asana": "0.1.*@dev"
16+
"torann/laravel-asana": "0.2.*@dev"
1617
~~~
1718

1819
You'll then need to run `composer install` to download it and have the autoloader updated.
1920

20-
### Create configuration file using artisan
21+
Once installed you need to register the service provider with the application. Open up `config/app.php` and find the `providers` key.
2122

23+
```php
24+
'providers' => array(
25+
'Torann\LaravelAsana\ServiceProvider',
26+
)
2227
```
23-
$ php artisan config:publish torann/laravel-asana
28+
29+
Laravel Asana also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your `config/app.php` file.
30+
31+
```php
32+
'aliases' => array(
33+
'Asana' => 'Torann\LaravelAsana\Facade',
34+
)
2435
```
2536

26-
Now add Asana in your providers array `app/config/app.php`
37+
### Create configuration file using artisan
2738

28-
~~~
29-
'Torann\LaravelAsana\ServiceProvider'
30-
~~~
39+
```
40+
$ php artisan vendor:publish
41+
```
3142

32-
## Quick Examples
43+
A configuration file will be publish to `config/asana.php`.
3344

45+
## Quick Examples
3446

3547
#### Get a specific user
3648

@@ -243,3 +255,13 @@ Asana::getTasksByFilter(array(
243255
'workspace' => 111221
244256
));
245257
```
258+
259+
## Change Log
260+
261+
#### v0.2.0
262+
263+
- Update to Laravel 5
264+
265+
#### v0.1.1
266+
267+
- Code cleanup
Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
<?php namespace Torann\LaravelAsana;
22

3-
use Illuminate\Foundation\AliasLoader;
4-
53
class ServiceProvider extends \Illuminate\Support\ServiceProvider {
64

7-
/**
8-
* Indicates if loading of the provider is deferred.
9-
*
10-
* @var bool
11-
*/
12-
protected $defer = false;
13-
145
/**
156
* Bootstrap the application events.
167
*
178
* @return void
189
*/
1910
public function boot()
2011
{
21-
// Register the package namespace
22-
$this->package('torann/laravel-asana');
23-
24-
// Auto create app alias with boot method.
25-
AliasLoader::getInstance()->alias('Asana', 'Torann\LaravelAsana\Facade');
12+
$this->publishes([
13+
__DIR__.'/../../config/asana.php' => config_path('asana.php'),
14+
]);
2615
}
2716

2817
/**
@@ -34,7 +23,7 @@ public function register()
3423
{
3524
$this->app['torann.asana'] = $this->app->share(function($app)
3625
{
37-
$config = $app->config->get('laravel-asana::config', array());
26+
$config = $app->config->get('asana', array());
3827

3928
return new Asana($config);
4029
});
@@ -47,6 +36,6 @@ public function register()
4736
*/
4837
public function provides()
4938
{
50-
return array();
39+
return [];
5140
}
5241
}

0 commit comments

Comments
 (0)