public function supports($resource, $type = null) { return 'sylius.resource' === $type || 'sylius.resource_api' === $type; }