PHP Class WellCommerce\Bundle\ThemeBundle\Locator\FileLocator

Author: Adam Piotrowski ([email protected])
Inheritance: extends Symfony\Component\Config\FileLocator
Show file Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$themeLocator WellCommerce\Bundle\ThemeBundle\Locator\ThemeLocatorInterface

Public Methods

Method Description
__construct ( WellCommerce\Bundle\ThemeBundle\Locator\ThemeLocatorInterface $themeLocator, array $paths = [] ) FileLocator constructor.
locate ( mixed $name, string | null $dir = null, boolean $first = true ) : array | string Returns a full path for a given template

Method Details

__construct() public method

FileLocator constructor.
public __construct ( WellCommerce\Bundle\ThemeBundle\Locator\ThemeLocatorInterface $themeLocator, array $paths = [] )
$themeLocator WellCommerce\Bundle\ThemeBundle\Locator\ThemeLocatorInterface
$paths array

locate() public method

Returns a full path for a given template
public locate ( mixed $name, string | null $dir = null, boolean $first = true ) : array | string
$name mixed
$dir string | null
$first boolean
return array | string

Property Details

$themeLocator protected property

protected ThemeLocatorInterface,WellCommerce\Bundle\ThemeBundle\Locator $themeLocator
return WellCommerce\Bundle\ThemeBundle\Locator\ThemeLocatorInterface