11
0
Fork 0
mirror of https://github.com/n3w/helpers-cli-input.git synced 2025-12-19 12:43:23 +00:00

Removed InputHandlerFactory::FLAG_SKIP_VALIDATION. Passing flags in call to bind()

This commit is contained in:
Alannah Kearney 2019-06-01 22:28:20 +10:00
commit 1100d5d959

View file

@ -9,8 +9,6 @@ use pointybeard\Helpers\Foundation\Factory;
final class InputHandlerFactory extends Factory\AbstractFactory
{
const FLAG_SKIP_VALIDATION = 0x0001;
public static function getTemplateNamespace(): string
{
return __NAMESPACE__.'\\Handlers\\%s';
@ -34,7 +32,7 @@ final class InputHandlerFactory extends Factory\AbstractFactory
if ($collection instanceof InputCollection) {
$handler->bind(
$collection,
Flags\is_flag_set($flags, self::FLAG_SKIP_VALIDATION)
$flags
);
}