PHP Class Jarves\Controller\Admin\BundleManager\ManagerController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
显示文件 Open project: jarves/jarves

Protected Properties

Property Type Description
$versionParser

Public Methods

Method Description
activateAction ( string $bundle ) : boolean
check4UpdatesAction ( ) : array
createBundleAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : boolean
deactivateAction ( string $bundle ) : boolean
getInstalledAction ( ) : array
getInstalledInfoAction ( $bundle ) : array
getLocalAction ( ) : array
installAction ( string $bundle, boolean $ormUpdate = null ) : array
installComposerAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : string
setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )
uninstallAction ( string $bundle, boolean $ormUpdate = null, boolean $removeFiles = null ) : boolean
uninstallComposerAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : string

Protected Methods

Method Description
firePackageManager ( $bundleName, string $script ) : boolean Fires the script in module/$module/package/$script.php and its events.
getBundles ( Finder $finder ) : array
getBundlesFromPath ( string $path ) : array
getComposerVendorDir ( ) : string
getPackage ( Composer\Repository\RepositoryInterface $installedRepo, Composer\Repository\RepositoryInterface $repos, $name, $version = null )
searchAndInstallBundles ( string $path )
searchAndUninstallBundlesAction ( string $path, boolean $removeFiles = false )
updateAutoloader ( )

Private Methods

Method Description
getComposer ( ) : Composer\Composer
versionCompareToServer ( $local, $server ) : string

Method Details

activateAction() public method

public activateAction ( string $bundle ) : boolean
$bundle string
return boolean

check4UpdatesAction() public method

public check4UpdatesAction ( ) : array
return array

createBundleAction() public method

public createBundleAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : boolean
$paramFetcher FOS\RestBundle\Request\ParamFetcher
return boolean

deactivateAction() public method

public deactivateAction ( string $bundle ) : boolean
$bundle string
return boolean

firePackageManager() protected method

Fires the script in module/$module/package/$script.php and its events.
protected firePackageManager ( $bundleName, string $script ) : boolean
$script string
return boolean

getBundles() protected method

protected getBundles ( Finder $finder ) : array
$finder Symfony\Component\Finder\Finder
return array

getBundlesFromPath() protected method

protected getBundlesFromPath ( string $path ) : array
$path string
return array

getComposerVendorDir() protected method

protected getComposerVendorDir ( ) : string
return string

getInstalledAction() public method

public getInstalledAction ( ) : array
return array

getInstalledInfoAction() public method

public getInstalledInfoAction ( $bundle ) : array
return array

getLocalAction() public method

public getLocalAction ( ) : array
return array

getPackage() protected method

protected getPackage ( Composer\Repository\RepositoryInterface $installedRepo, Composer\Repository\RepositoryInterface $repos, $name, $version = null )
$installedRepo Composer\Repository\RepositoryInterface
$repos Composer\Repository\RepositoryInterface

installAction() public method

public installAction ( string $bundle, boolean $ormUpdate = null ) : array
$bundle string
$ormUpdate boolean
return array

installComposerAction() public method

public installComposerAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : string
$paramFetcher FOS\RestBundle\Request\ParamFetcher
return string

searchAndInstallBundles() protected method

protected searchAndInstallBundles ( string $path )
$path string

searchAndUninstallBundlesAction() protected method

protected searchAndUninstallBundlesAction ( string $path, boolean $removeFiles = false )
$path string
$removeFiles boolean

setContainer() public method

public setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )
$container Symfony\Component\DependencyInjection\ContainerInterface

uninstallAction() public method

public uninstallAction ( string $bundle, boolean $ormUpdate = null, boolean $removeFiles = null ) : boolean
$bundle string
$ormUpdate boolean
$removeFiles boolean
return boolean

uninstallComposerAction() public method

public uninstallComposerAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : string
$paramFetcher FOS\RestBundle\Request\ParamFetcher
return string

updateAutoloader() protected method

protected updateAutoloader ( )

Property Details

$versionParser protected_oe property

protected $versionParser