summaryrefslogtreecommitdiffstats
path: root/Core/SecurityContextInterface.php
blob: fd205d6dbd7b9d16594cbc331c3d3d2d8dc32a02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

namespace Symfony\Component\Security\Core;

use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;

/**
 * The SecurityContextInterface.
 *
 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 */
interface SecurityContextInterface
{
    const ACCESS_DENIED_ERROR  = '_security.403_error';
    const AUTHENTICATION_ERROR = '_security.last_error';
    const LAST_USERNAME        = '_security.last_username';

    function getToken();
    function setToken(TokenInterface $account);
    function vote($attributes, $object = null);
}