PHP Class Contao\CoreBundle\Analyzer\HtaccessAnalyzer

Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( SplFileInfo $file ) Stores the file object.
create ( SplFileInfo $file ) : static Creates a new object instance.
grantsAccess ( ) : boolean Checks whether the .htaccess file grants access via HTTP.

Private Methods

Méthode Description
hasRequireGranted ( string $line ) : boolean Scans a line for an access definition.
isComment ( string $line ) : boolean Checks whether a line is a comment.

Method Details

__construct() public méthode

Stores the file object.
public __construct ( SplFileInfo $file )
$file SplFileInfo

create() public static méthode

Creates a new object instance.
public static create ( SplFileInfo $file ) : static
$file SplFileInfo
Résultat static

grantsAccess() public méthode

Checks whether the .htaccess file grants access via HTTP.
public grantsAccess ( ) : boolean
Résultat boolean