PHP Class WellCommerce\Bundle\DoctrineBundle\Command\GenerateEntityExtraCommand

Author: Adam Piotrowski ([email protected])
Inheritance: extends Symfony\Component\Console\Command\Command
显示文件 Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$collection WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerCollection
$environmentHelper WellCommerce\Bundle\CoreBundle\Helper\Environment\EnvironmentHelperInterface
$filesystem Symfony\Component\Filesystem\Filesystem
$traverser WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerTraverserInterface

Public Methods

Method Description
__construct ( WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerCollection $collection, WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerTraverserInterface $traverser, WellCommerce\Bundle\CoreBundle\Helper\Environment\EnvironmentHelperInterface $environmentHelper ) GenerateEntityExtraCommand constructor.

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Executes the command
executeMetadataCacheClear ( Symfony\Component\Console\Output\OutputInterface $output ) Executes the cache clear through separate process
executeSchemaUpdate ( Symfony\Component\Console\Output\OutputInterface $output ) Executes the schema update through separate process
generateTrait ( Wingu\OctopusCore\Reflection\ReflectionClass $reflectionClass ) : string Generates a trait class

Method Details

__construct() public method

GenerateEntityExtraCommand constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerCollection $collection, WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerTraverserInterface $traverser, WellCommerce\Bundle\CoreBundle\Helper\Environment\EnvironmentHelperInterface $environmentHelper )
$collection WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerCollection
$traverser WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerTraverserInterface
$environmentHelper WellCommerce\Bundle\CoreBundle\Helper\Environment\EnvironmentHelperInterface

configure() protected method

protected configure ( )

execute() protected method

Executes the command
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

executeMetadataCacheClear() protected method

Executes the cache clear through separate process
protected executeMetadataCacheClear ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

executeSchemaUpdate() protected method

Executes the schema update through separate process
protected executeSchemaUpdate ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

generateTrait() protected method

Generates a trait class
protected generateTrait ( Wingu\OctopusCore\Reflection\ReflectionClass $reflectionClass ) : string
$reflectionClass Wingu\OctopusCore\Reflection\ReflectionClass
return string

Property Details

$collection protected_oe property

protected TraitGeneratorEnhancerCollection,WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator $collection
return WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerCollection

$environmentHelper protected_oe property

protected EnvironmentHelperInterface,WellCommerce\Bundle\CoreBundle\Helper\Environment $environmentHelper
return WellCommerce\Bundle\CoreBundle\Helper\Environment\EnvironmentHelperInterface

$filesystem protected_oe property

protected Filesystem,Symfony\Component\Filesystem $filesystem
return Symfony\Component\Filesystem\Filesystem

$traverser protected_oe property

protected TraitGeneratorEnhancerTraverserInterface,WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator $traverser
return WellCommerce\Bundle\DoctrineBundle\Enhancer\TraitGenerator\TraitGeneratorEnhancerTraverserInterface