| 1 | <?php |
||
| 24 | class YamlLoader extends ConfigFileLoader |
||
| 25 | { |
||
| 26 | public const TYPE = "yaml"; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | * |
||
| 31 | * @throws RuntimeException If Symfony Yaml package is not installed |
||
| 32 | */ |
||
| 33 | public function load(string $resource, string $type = null) : RepositoryInterface |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function supports(string $resource, string $type = null) : bool |
||
| 59 | } |
||
| 60 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.