Skip to content

Commit

Permalink
Add package auto-discovery and improve installation documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-butynski committed Oct 13, 2017
1 parent 417c41c commit f1ad8a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ This package provides a service provider to add a driver for OpenStack Object St

## Installation

In order to install this package, add `neoxia/laravel-openstack` in `composer.json`.
Require this package with composer using the following command:

```JS
"require": {
"neoxia/laravel-openstack": "1.1.*"
},
```
composer require neoxia/laravel-openstack
```

And add the service provider in `config/app.php`.
As of Laravel 5.5, this package will be automatically discovered and registered.
For older version of Laravel, add the service provider in `config/app.php`.

```PHP
Neoxia\Filesystem\OpenStackServiceProvider::class,
Neoxia\Filesystem\OpenStackServiceProvider::class
```

## Configuration
Expand Down
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,12 @@
"psr-4": {
"Neoxia\\": "src/Neoxia/"
}
},
"extra": {
"laravel": {
"providers": [
"Neoxia\\Filesystem\\OpenStackServiceProvider"
]
}
}
}

0 comments on commit f1ad8a6

Please sign in to comment.