public function SubdivisionRepository::__construct in Address 8
Creates a SubdivisionRepository instance.
Parameters
\CommerceGuys\Addressing\AddressFormat\AddressFormatRepositoryInterface $address_format_repository: The address format repository.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.
File
- src/
Repository/ SubdivisionRepository.php, line 43
Class
- SubdivisionRepository
- Provides subdivisions.
Namespace
Drupal\address\RepositoryCode
public function __construct(AddressFormatRepositoryInterface $address_format_repository, EventDispatcherInterface $event_dispatcher, CacheBackendInterface $cache) {
parent::__construct($address_format_repository);
$this->eventDispatcher = $event_dispatcher;
$this->cache = $cache;
}