Methods |
public
__construct
(
string
$composerJsonPath
=
''
) Make a FileManager. Pass a composer JSON path to use |
public
addNamespace
(
string
$namespace
,
string
$directory
,
bool
$localGit
=
false
) :
PHPFUI\InstaDoc\FileManager
You can add a Namespace directly. Specify the namespace (no This is realitive to the current script directory. You can |
public
delete
(
string
$fileName
=
''
) :
int
Delete config files
|
public
excludeNamespace
(
string
$namespace
) :
PHPFUI\InstaDoc\FileManager
Remove just one namespace from your docs. |
public
excludeNamespaces
(
array
$namespaces
) :
PHPFUI\InstaDoc\FileManager
Sometimes you don't feel like a nut. Pass namespaces in an |
public getComposerPath () : string |
public
load
(
string
$fileName
=
''
) :
bool
Load the namespace index.
|
public
rescan
() :
PHPFUI\InstaDoc\FileManager
Rescan the namespaces for the latest changes. |
public
save
(
string
$fileName
=
''
) :
bool
Save the current configuration |
public
setBaseFile
(
string
$fileName
) :
self
Set base file name for saving index file |
public setComposerPath ( string $composerJsonPath ) : PHPFUI\InstaDoc\FileManager |
public
setConfigName
(
string
$dirOrFilename
) :
PHPFUI\InstaDoc\FileManager
The directory or directory/base file name to store settings. If it is a directory, the file base name will be FileManager. |
public
setExtension
(
string
$extension
=
'.serial'
) :
self
Set file extension for saving index file |
Properties |
private $composerJsonPath |
private $configFile |
private $excludedNamespaces |
private $extension |
private $fileName |
private $includedNamespaces |
Methods |
private getSerializedName ( string $fileName = '' , string $extension = '' ) : string |
private
loadVendorDirectories
() :
void
Read the composer files to get all namespaces for include |