/** * Gets the group provider for Sentry. * * @return \Cartalyst\Sentry\Groups\ProviderInterface * @static */ public static function getGroupProvider() { return \Cartalyst\Sentry\Sentry::getGroupProvider(); }
/** * Creates a group. * * @author Steve Montambeault * @link http://stevemo.ca * * @param array $attributes * * @return \Cartalyst\Sentry\Groups\GroupInterface */ public function create(array $attributes) { $group = $this->sentry->getGroupProvider()->create($attributes); $this->event->fire('groups.create', array($group)); return $group; }