Class PathHelper
PathHelper service class
Usage example:
$this->container->get('fom.pathhelper')->getBundleWebPath()
Methods summary
public
|
#
__construct( Symfony\Component\DependencyInjection\ContainerInterface $container )
|
public
string
|
#
getBundleWebPath( string $uri = "/", boolean $create = true )
Get bundle web assets absolute path
Get bundle web assets absolute path
Parameters
- $uri
- Path to concatenate with the result path
- $create
- Create directory if not exists
Returns
string Absolute path
|
public
string
|
#
getBundleDataPath( string $uri = "/", boolean $create = true )
Get bundle data absolute path
Get bundle data absolute path
Parameters
- $uri
- Path to concatenate with the result path
- $create
- Create directory if not exists
Returns
string Absolute path
|
Magic methods summary
Properties summary
protected
mixed
|
$container
|
|