UserFrosting API

SimpleGlobBuilder extends PathBuilder

An example builder class that simply globs together all PHP files in each search path.

Tags
author

Alexander Weissman (https://alexanderweissman.com)

Table of Contents

$locator ResourceLocatorInterface
$uri string
buildPaths() Glob together all file paths in each search path from the locator. array
__construct() Create the loader. mixed
buildPaths() Build out the ordered list of file paths, using the designated locator and uri for this loader. array

Properties

Methods

buildPaths()

Glob together all file paths in each search path from the locator.

public buildPaths( [ $extension : string = 'php' ] ) : array
Parameters
$extension : string = 'php'

(default 'php')

Return values
array

buildPaths()

Build out the ordered list of file paths, using the designated locator and uri for this loader.

public abstract buildPaths( ) : array
Return values
array

Search results