- Upgrade to 7.x from 6.x #11
This commit is contained in:
parent
4e44d9d996
commit
bcbd05d7d8
29 changed files with 1289 additions and 647 deletions
|
@ -4,6 +4,8 @@ namespace App\Providers;
|
|||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Solarium\Client;
|
||||
use Solarium\Core\Client\Adapter\Curl;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
|
||||
class SolariumServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
@ -18,6 +20,9 @@ class SolariumServiceProvider extends ServiceProvider
|
|||
public function register()
|
||||
{
|
||||
$this->app->bind(Client::class, function ($app) {
|
||||
|
||||
$adapter = new Curl();
|
||||
$dispatcher = new EventDispatcher();
|
||||
// $config = config('solarium');
|
||||
$config = array(
|
||||
'endpoint' => array(
|
||||
|
@ -30,7 +35,7 @@ class SolariumServiceProvider extends ServiceProvider
|
|||
)
|
||||
);
|
||||
//return new Client($config);
|
||||
return new Client($config);
|
||||
return new Client($adapter, $dispatcher, $config);
|
||||
//return new Client($app['config']['solarium']);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue