Method | Description | |
---|---|---|
__construct ( string $component ) | Constructor. | |
applicationFileExists ( ) : string | boolean | Indicates if there is a Application.php file for this component. | |
bundleFileExists ( ) : string | boolean | Indicates if there is a Bundle.php file for this component. | |
changesFileExists ( ) : string | boolean | Indicates if there is a CHANGES file for this component. | |
getVersion ( ) : string | Returns the current version from Application.php or Bundle.php. | |
replaceChanges ( string $version ) : null | Replace the current sentinel in the CHANGES file in case it exists. | |
updateApplication ( $version ) : null | Update the Application.php or Bundle.php file in case it exists. | |
updateChanges ( string $version ) : null | Update the CHANGES file in case it exists. |
public __construct ( string $component ) | ||
$component | string | Base component path. |
public applicationFileExists ( ) : string | boolean | ||
return | string | boolean | The path to the Application.php file if it exists, false otherwise. |
public bundleFileExists ( ) : string | boolean | ||
return | string | boolean | The path to the Bundle.php file if it exists, false otherwise. |
public changesFileExists ( ) : string | boolean | ||
return | string | boolean | The path to the CHANGES file if it exists, false otherwise. |
public getVersion ( ) : string | ||
return | string | Version string. |
public replaceChanges ( string $version ) : null | ||
$version | string | Version string that should be added. |
return | null |
public updateApplication ( $version ) : null | ||
return | null |
public updateChanges ( string $version ) : null | ||
$version | string | Version string that should be added. |
return | null |