PHP Class Contao\CoreBundle\Analyzer\HtaccessAnalyzer

Datei anzeigen Open project: contao/core-bundle Class Usage Examples

Public Methods

Method 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

Method 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 method

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

create() public static method

Creates a new object instance.
public static create ( SplFileInfo $file ) : static
$file SplFileInfo
return static

grantsAccess() public method

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