@@ -27,12 +27,13 @@ to download the package.
2727
2828## Laravel 5 Integration
2929
30- To use the package with Laravel 5 firstly add the carpenter service provider to the list of service providers
30+ To use the package with Laravel 5 we firstly need to add the notifier and core service providers to the providers array
3131in ` app/config/app.php ` .
3232
3333``` php
3434'providers' => array(
3535
36+ Coreplex\Core\CoreServiceProvider::class,
3637 Coreplex\Notifier\NotifierServiceProvider::class,
3738
3839);
@@ -52,26 +53,16 @@ Finally once you've added the service provider run `php artisan vendor:publish`
5253
5354## Usage
5455
55- The notifier is made up of a couple of components; a template parser and a session class. This package comes with a
56- template parser and a native PHP session class.
56+ The notifier is made up of a couple of components; a template parser and the coreplex core session class.
5757
58- However if you wish to make your own session or template parser you simply need to implement the Session or
59- TemplateParser interfaces.
60-
61- To make the default template parser you simply need to make a new instance of the Parser class. This class has no
58+ To make the template parser you simply need to make a new instance of the Parser class. This class has no
6259dependencies so it's a simple case of creating the object.
6360
6461``` php
6562$parser = new Coreplex\Notifier\Parser();
6663```
6764
68- The native session class requires the package config as a dependency.
69-
70- ``` php
71- $config = require "path/to/config.php";
72-
73- $session = new Coreplex\Notifier\Session\Native($config);
74- ```
65+ To see how to use the coreplex core session class check the [ docs] ( https://github.com/coreplex/core ) .
7566
7667Once you have the template parser and session you are ready to create the notifier. The notifier also requires the
7768package config as a third parameter.
0 commit comments