/**
  * Registers Sentinel Social.
  *
  * @return void
  */
 protected function registerSentinelSocial()
 {
     $this->app['sentinel.addons.social'] = $this->app->share(function ($app) {
         $manager = new Manager($app['sentinel'], $app['sentinel.addons.social.repository'], $app['sentinel.addons.social.request'], $app['sentinel.addons.social.session'], $app['events']);
         $connections = $app['config']->get('cartalyst.sentinel-addons.social.connections');
         $manager->addConnections($connections);
         return $manager;
     });
     $this->app->alias('sentinel.addons.social', 'Cartalyst\\Sentinel\\Addons\\Social\\Manager');
 }
Example #2
0
 /** @test */
 public function it_can_set_and_retrieve_the_link_repository()
 {
     $linkRepository = m::mock('Cartalyst\\Sentinel\\Addons\\Social\\Repositories\\LinkRepositoryInterface');
     $this->manager->setLinksRepository($linkRepository);
     $this->assertSame($linkRepository, $this->manager->getLinksRepository());
 }