|
15 | 15 | use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
16 | 16 | use TheCodingMachine\GraphQLite\Mappers\StaticClassListTypeMapperFactory;
|
17 | 17 | use Webmozart\Assert\Assert;
|
| 18 | +use function assert; |
18 | 19 | use function class_exists;
|
19 | 20 | use Doctrine\Common\Annotations\AnnotationReader as DoctrineAnnotationReader;
|
20 | 21 | use Doctrine\Common\Annotations\AnnotationRegistry;
|
@@ -75,18 +76,18 @@ public function process(ContainerBuilder $container): void
|
75 | 76 | {
|
76 | 77 | $reader = $this->getAnnotationReader();
|
77 | 78 | $cacheDir = $container->getParameter('kernel.cache_dir');
|
78 |
| - Assert::string($cacheDir); |
| 79 | + assert(is_string($cacheDir)); |
79 | 80 | $this->cacheDir = $cacheDir;
|
80 | 81 | //$inputTypeUtils = new InputTypeUtils($reader, $namingStrategy);
|
81 | 82 |
|
82 | 83 | // Let's scan the whole container and tag the services that belong to the namespace we want to inspect.
|
83 | 84 | $controllersNamespaces = $container->getParameter('graphqlite.namespace.controllers');
|
84 |
| - Assert::isIterable($controllersNamespaces); |
85 | 85 | $typesNamespaces = $container->getParameter('graphqlite.namespace.types');
|
86 |
| - Assert::isIterable($typesNamespaces); |
| 86 | + assert(is_iterable($controllersNamespaces)); |
| 87 | + assert(is_iterable($typesNamespaces)); |
87 | 88 |
|
88 | 89 | $firewallName = $container->getParameter('graphqlite.security.firewall_name');
|
89 |
| - Assert::string($firewallName); |
| 90 | + assert(is_string($firewallName)); |
90 | 91 | $firewallConfigServiceName = 'security.firewall.map.config.'.$firewallName;
|
91 | 92 |
|
92 | 93 | // 2 seconds of TTL in environment mode. Otherwise, let's cache forever!
|
|
0 commit comments