ServerParams

class ServerParams Methods __construct(RequestStack $requestStack = null) bool hasPostMaxSizeBeenExceeded() Returns true if the POST max size has been exceeded in the request. null|int getPostMaxSize() Returns maximum post size in bytes. string getNormalizedIniPostMaxSize() Returns the normalized "postmaxsize" ini setting. mixed getContentLength() Returns the content length of the request. Details __construct(RequestStack $requestStack

ServerParams::getPostMaxSize()

null|int getPostMaxSize() Returns maximum post size in bytes. Return Value null|int The maximum post size in bytes

ServerCommand

class ServerCommand extends ContainerAwareCommand Base methods for commands related to PHP's built-in web server. Methods __construct(string|null $name = null) Constructor. from Command ignoreValidationErrors() Ignores validation errors. from Command setApplication(Application $application = null) Sets the application instance for this command. from Command setHelperSet(HelperSet $helperSet) Sets the helper set. from Command HelperSet getHelperSet() Gets the helper set.

ServerBag

class ServerBag extends ParameterBag ServerBag is a container for HTTP headers from the $_SERVER variable. Methods __construct(array $parameters = array()) Constructor. from ParameterBag array all() Returns the parameters. from ParameterBag array keys() Returns the parameter keys. from ParameterBag replace(array $parameters = array()) Replaces the current parameters by a new set. from ParameterBag add(array $parameters = array()) Adds parameters. from ParameterBag mixed

SerializerInterface::deserialize()

object deserialize(mixed $data, string $type, string $format, array $context = array()) Deserializes data into the given type. Parameters mixed $data string $type string $format array $context Return Value object

SerializerInterface::serialize()

string serialize(mixed $data, string $format, array $context = array()) Serializes data in the appropriate format. Parameters mixed $data any data string $format format name array $context options normalizers/encoders have access to Return Value string

SerializerExtractor

class SerializerExtractor implements PropertyListExtractorInterface Lists available properties using Symfony Serializer Component metadata. Methods __construct(ClassMetadataFactoryInterface $classMetadataFactory) string[]|null getProperties(string $class, array $context = array()) Gets the list of properties available for the given class. Details __construct(ClassMetadataFactoryInterface $classMetadataFactory) Parameters ClassMetadataFac

SerializerPass

class SerializerPass implements CompilerPassInterface Adds all services with the tags "serializer.encoder" and "serializer.normalizer" as encoders and normalizers to the Serializer service. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $co

SerializerInterface

interface SerializerInterface Defines the interface of the Serializer. Methods string serialize(mixed $data, string $format, array $context = array()) Serializes data in the appropriate format. object deserialize(mixed $data, string $type, string $format, array $context = array()) Deserializes data into the given type. Details string serialize(mixed $data, string $format, array $context = array()) Serializes data in the appropriate format.

SerializerAwareInterface

interface SerializerAwareInterface Defines the interface of encoders. Methods setSerializer(SerializerInterface $serializer) Sets the owning Serializer object. Details setSerializer(SerializerInterface $serializer) Sets the owning Serializer object. Parameters SerializerInterface $serializer