blob: 3fd4494b4a3cf8affc33ff08edc93fb1e5a42e16 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Symfony\Component\Translation\Provider;
13
14use Symfony\Component\Translation\Exception\IncompleteDsnException;
15use Symfony\Component\Translation\Exception\UnsupportedSchemeException;
16
17interface ProviderFactoryInterface
18{
19 /**
20 * @throws UnsupportedSchemeException
21 * @throws IncompleteDsnException
22 */
23 public function create(Dsn $dsn): ProviderInterface;
24
25 public function supports(Dsn $dsn): bool;
26}