public function __construct(array $configuration, IRepositoryLoader $repositoryLoader, MetadataStorage $metadataStorage) { $this->loader = $repositoryLoader; $this->metadataStorage = $metadataStorage; $this->configuration = $configuration; }
public function __construct(array $configuration, Nextras\Orm\Model\IRepositoryLoader $repositoryLoader, Nextras\Orm\Model\MetadataStorage $metadataStorage, Nette\Caching\IStorage $cacheStorage) { parent::__construct($configuration, $repositoryLoader, $metadataStorage); $this->onFlush[] = function () use($cacheStorage) { $cacheStorage->clean([Nette\Caching\Cache::TAGS => $this->tags]); $this->tags = []; }; }