PHP Class Airship\Hangar\SessionCommand

Class SessionCommand
Inheritance: extends Command
Show file Open project: paragonie/airship

Protected Methods

Method Description
findRelativeDir ( ) : string Get the difference between the session root dir and the current dir
getRealPath ( string $file ) : string If a file path is absolute, but still in the root, truncate it.

Method Details

findRelativeDir() protected method

Get the difference between the session root dir and the current dir
protected findRelativeDir ( ) : string
return string

getRealPath() protected method

If a file path is relative to the root, return it. Otherwise, thorw an error!
protected getRealPath ( string $file ) : string
$file string
return string