for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Silverback\ApiComponentBundle\Serializer\Middleware;
use Psr\Container\ContainerInterface;
use Symfony\Component\DependencyInjection\ServiceSubscriberInterface;
abstract class AbstractMiddleware implements MiddlewareInterface, ServiceSubscriberInterface
{
protected $container;
public function __construct(ContainerInterface $container)
$this->container = $container;
}
abstract public function process($object, array $context = array());
abstract public function supportsData($data): bool;
abstract public static function getSubscribedServices(): array;