PHP Class WellCommerce\Bundle\ApiBundle\CacheWarmer\SerializationCacheWarmer

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

Protected Properties

Свойство Type Description
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$filesystem Symfony\Component\Filesystem\Filesystem

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Private Methods

Méthode Description
parseContent ( string $content ) : array Parses the Yaml contents

Method Details

__construct() public méthode

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

appendConfigurationFromMetadata() protected méthode

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

getConfiguration() protected méthode

protected getConfiguration ( ) : array
Résultat array

isOptional() public méthode

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

resolvePath() protected méthode

protected resolvePath ( ReflectionClass $reflectionClass )
$reflectionClass ReflectionClass

warmUp() public méthode

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

Property Details

$doctrineHelper protected_oe property

protected DoctrineHelperInterface,WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine $doctrineHelper
Résultat WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

$filesystem protected_oe property

protected Filesystem,Symfony\Component\Filesystem $filesystem
Résultat Symfony\Component\Filesystem\Filesystem