PHP Class WellCommerce\Bundle\ApiBundle\CacheWarmer\SerializationCacheWarmer

Author: Adam Piotrowski ([email protected])
Inheritance: extends Symfony\Component\HttpKernel\CacheWarmer\CacheWarmer
Show file Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$filesystem Symfony\Component\Filesystem\Filesystem

Public Methods

Method Description
__construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper ) SerializationCacheWarmer constructor.
isOptional ( ) : boolean Checks whether this warmer is optional or not.
warmUp ( string $cacheDir ) Warms up the cache.

Protected Methods

Method Description
appendConfigurationFromMetadata ( Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata, &$configuration )
getConfiguration ( ) : array
resolvePath ( ReflectionClass $reflectionClass )

Private Methods

Method Description
parseContent ( string $content ) : array Parses the Yaml contents

Method Details

__construct() public method

SerializationCacheWarmer constructor.
public __construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper )
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

appendConfigurationFromMetadata() protected method

protected appendConfigurationFromMetadata ( Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata, &$configuration )
$metadata Doctrine\Common\Persistence\Mapping\ClassMetadata

getConfiguration() protected method

protected getConfiguration ( ) : array
return array

isOptional() public method

Checks whether this warmer is optional or not.
public isOptional ( ) : boolean
return boolean always true

resolvePath() protected method

protected resolvePath ( ReflectionClass $reflectionClass )
$reflectionClass ReflectionClass

warmUp() public method

Warms up the cache.
public warmUp ( string $cacheDir )
$cacheDir string The cache directory

Property Details

$doctrineHelper protected property

protected DoctrineHelperInterface,WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine $doctrineHelper
return WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

$filesystem protected property

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