Heratio Framework API Reference

PathResolver
in package

Centralized path resolution for AtoM framework.

Resolves paths using priority:

  1. sfConfig (Symfony context)
  2. Environment variables (ATOM_ROOT, ATOM_PLUGINS_DIR)
  3. Constants (ATOM_ROOT_PATH from bootstrap)
  4. Relative path detection

Table of Contents

Methods

getBackupsDir()  : string
Get the backups directory.
getBaseModulePath()  : string
Get a base AtoM module action path.
getCacheDir()  : string
Get the cache directory.
getConfigDir()  : string
Get the config directory.
getConfigFile()  : string
Get the config file path.
getDataDir()  : string
Get the data directory.
getFrameworkAutoloadPath()  : string
Get the framework autoload path.
getFrameworkDir()  : string
Get the framework directory.
getFrameworkVendorDir()  : string
Get the framework vendor directory.
getLibraryPath()  : string|null
Get a library path, checking framework vendor first, then root vendor.
getLogDir()  : string
Get the log directory.
getPluginPath()  : string
Get a plugin's path.
getPluginsDir()  : string
Get the plugins directory.
getRootAutoloadPath()  : string
Get the root autoload path.
getRootDir()  : string
Get the AtoM root directory.
getUploadsDir()  : string
Get the uploads directory.
getVendorDir()  : string
Get the root vendor directory.
reset()  : void
Reset cached paths (useful for testing).
setPluginsDir()  : void
Set plugins directory explicitly.
setRootDir()  : void
Set root directory explicitly (for testing or special contexts).

Methods

getBackupsDir()

Get the backups directory.

public static getBackupsDir() : string
Return values
string

getBaseModulePath()

Get a base AtoM module action path.

public static getBaseModulePath(string $module, string $action) : string
Parameters
$module : string
$action : string
Return values
string

getCacheDir()

Get the cache directory.

public static getCacheDir() : string
Return values
string

getConfigDir()

Get the config directory.

public static getConfigDir() : string
Return values
string

getConfigFile()

Get the config file path.

public static getConfigFile() : string
Return values
string

getDataDir()

Get the data directory.

public static getDataDir() : string
Return values
string

getFrameworkAutoloadPath()

Get the framework autoload path.

public static getFrameworkAutoloadPath() : string
Return values
string

getFrameworkDir()

Get the framework directory.

public static getFrameworkDir() : string
Return values
string

getFrameworkVendorDir()

Get the framework vendor directory.

public static getFrameworkVendorDir() : string
Return values
string

getLibraryPath()

Get a library path, checking framework vendor first, then root vendor.

public static getLibraryPath(string $package) : string|null
Parameters
$package : string
Return values
string|null

getLogDir()

Get the log directory.

public static getLogDir() : string
Return values
string

getPluginPath()

Get a plugin's path.

public static getPluginPath(string $pluginName) : string
Parameters
$pluginName : string
Return values
string

getPluginsDir()

Get the plugins directory.

public static getPluginsDir() : string
Return values
string

getRootAutoloadPath()

Get the root autoload path.

public static getRootAutoloadPath() : string
Return values
string

getRootDir()

Get the AtoM root directory.

public static getRootDir() : string
Return values
string

getUploadsDir()

Get the uploads directory.

public static getUploadsDir() : string
Return values
string

getVendorDir()

Get the root vendor directory.

public static getVendorDir() : string
Return values
string

reset()

Reset cached paths (useful for testing).

public static reset() : void

setPluginsDir()

Set plugins directory explicitly.

public static setPluginsDir(string $path) : void
Parameters
$path : string

setRootDir()

Set root directory explicitly (for testing or special contexts).

public static setRootDir(string $path) : void
Parameters
$path : string

        
On this page

Search results