HTTP foundation Flashcards
What interface represents a session object?
Symfony\Component\HttpFoundation\Session\SessionInterface
How do you check the contents of the flashbag without removing it?
By using peek(string $type, array $default = []) method.
What is the type of the object that is used to store response headers?
Symfony\Component\HttpFoundation\ResponseHeaderBag
What are possible objects to represent a response?
Symfony\Component\HttpFoundation\Response
Symfony\Component\HttpFoundation\RedirectResponse
Symfony\Component\HttpFoundation\JsonResponse
Symfony\Component\HttpFoundation\StreamedResponse
Symfony\Component\HttpFoundation\BinaryFileResponse
What are available argument value resolvers?
Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestAttributeValueResolver
Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestValueResolver
Symfony\Component\HttpKernel\Controller\ArgumentResolver\ServiceValueResolver
Symfony\Component\HttpKernel\Controller\ArgumentResolver\SessionValueResolver
Symfony\Component\HttpKernel\Controller\ArgumentResolver\DefaultValueResolver
Symfony\Component\HttpKernel\Controller\ArgumentResolver\VariadicValueResolver
Symfony\Component\Security\Http\Controller\UserValueResolver
Sensio\Bundle\FrameworkExtraBundle\Request\ArgumentValueResolver\Psr7ServerRequestResolver
What type of object represents uploaded file?
Symfony\Component\HttpFoundation\File\UploadedFile
What request object property represents the $_POST data?
request
What request object property represents the $_GET data?
query
What types of objects are used as bags by the request property?
Symfony\Component\HttpFoundation\ParameterBag
Symfony\Component\HttpFoundation\InputBag
Symfony\Component\HttpFoundation\FileBag
Symfony\Component\HttpFoundation\ServerBag
Symfony\Component\HttpFoundation\HeaderBag
Where from is Request::$languages data taken?
Accept-Language header
Where from is Request::$charsets data taken?
Accept-Charset header
Where from is Request::$encodings data taken?
Accept-Encoding header
Where from is Request::$acceptableContentTypes data taken?
Accept header
What are possible session operations?
open read write close gc close
What are standard session handlers?
Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler
Symfony\Component\HttpFoundation\Session\Storage\Handler\MigratingSessionHandler
Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler
Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler
Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler