for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\UsersModule\Role\Command;
use Anomaly\Streams\Platform\Support\Authorizer;
use Anomaly\UsersModule\Role\Contract\RoleRepositoryInterface;
use Illuminate\Contracts\Bus\SelfHandling;
/**
* Class SetGuestRole
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
* @package Anomaly\UsersModule\Role\Command
*/
class SetGuestRole implements SelfHandling
{
* Handle the command.
* @param RoleRepositoryInterface $roles
* @param Authorizer $authorizer
public function handle(RoleRepositoryInterface $roles, Authorizer $authorizer)
$authorizer->setGuest($roles->findBySlug('guest'));
}