BinaryFileResponse::getContent()

string getContent() Gets the current response content. Return Value string Content

BinaryFileResponse

class BinaryFileResponse extends Response BinaryFileResponse represents an HTTP response delivering a file. Constants HTTP_CONTINUE HTTP_SWITCHING_PROTOCOLS HTTP_PROCESSING HTTP_OK HTTP_CREATED HTTP_ACCEPTED HTTP_NON_AUTHORITATIVE_INFORMATION HTTP_NO_CONTENT HTTP_RESET_CONTENT HTTP_PARTIAL_CONTENT HTTP_MULTI_STATUS HTTP_ALREADY_REPORTED HTTP_IM_USED HTTP_MULTIPLE_CHOICES HTTP_MOVED_PERMANENTLY HTTP_FOUND HTTP_SEE_OTHER HTTP

BinaryFileResponse::create()

static Response create(SplFileInfo|string $file = null, int $status = 200, array $headers = array(), bool $public = true, null|string $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true) Parameters SplFileInfo|string $file The file to stream int $status The response status code array $headers An array of response headers bool $public Files are public by default null|string $contentDisposition The type of Content-Disposition to set automat

BinaryBundleReader

class BinaryBundleReader extends AbstractBundleReader implements BundleReaderInterface Reads binary .res resource bundles. Methods string[] getLocales(string $path) Reads the available locales of a resource bundle. from AbstractBundleReader mixed read(string $path, string $locale) Reads a resource bundle. Details string[] getLocales(string $path) Reads the available locales of a resource bundle. Parameters string $path The path to the res

BicValidator

class BicValidator extends ConstraintValidator Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint) Checks if the passed value is valid. Details initializ

Bic

class Bic extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. INVALID_LENGTH_ERROR INVALID_CHARACTERS_ERROR INVALID_BANK_CODE_ERROR INVALID_COUNTRY_CODE_ERROR INVALID_CASE_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constrai

BCryptPasswordEncoder

class BCryptPasswordEncoder extends BasePasswordEncoder Constants MAX_PASSWORD_LENGTH Methods __construct(int $cost) Constructor. string encodePassword(string $raw, string $salt) Encodes the raw password. bool isPasswordValid(string $encoded, string $raw, string $salt) Checks a raw password against an encoded password. Details __construct(int $cost) Constructor. Parameters int $cost The algorithmic cost that should be used Exce

BasicPermissionMap::getMasks()

array getMasks(string $permission, object $object) Returns an array of bitmasks. The security identity must have been granted access to at least one of these bitmasks. Parameters string $permission object $object Return Value array may return null if permission/object combination is not supported

BCryptPasswordEncoder::isPasswordValid()

bool isPasswordValid(string $encoded, string $raw, string $salt) Checks a raw password against an encoded password. Parameters string $encoded An encoded password string $raw A raw password string $salt The salt Return Value bool true if the password is valid, false otherwise

BCryptPasswordEncoder::encodePassword()

string encodePassword(string $raw, string $salt) Encodes the raw password. It doesn't work with PHP versions lower than 5.3.7, since the password compat library uses CRYPT_BLOWFISH hash type with the "$2y$" salt prefix (which is not available in the early PHP versions). Parameters string $raw The password to encode string $salt The salt Return Value string The encoded password Exceptions BadCredentialsException when the given password is too long See also https://github.com/irc