mirror of
https://github.com/flarum/framework.git
synced 2025-05-09 04:52:27 +08:00
32 lines
726 B
Plaintext
32 lines
726 B
Plaintext
<?php
|
|
|
|
namespace Illuminate\Contracts\Auth\Access
|
|
{
|
|
|
|
interface Gate
|
|
{
|
|
/**
|
|
* Get a guard instance for the given user.
|
|
*
|
|
* @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
|
|
* @return \Illuminate\Contracts\Auth\Access\Gate
|
|
*/
|
|
public function forUser($user);
|
|
}
|
|
}
|
|
|
|
namespace Illuminate\Auth\Access
|
|
{
|
|
|
|
class Gate implements \Illuminate\Contracts\Auth\Access\Gate
|
|
{
|
|
/**
|
|
* Get a guard instance for the given user.
|
|
*
|
|
* @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
|
|
* @return \Illuminate\Contracts\Auth\Access\Gate
|
|
*/
|
|
public function forUser($user);
|
|
}
|
|
}
|