public static function enable()
    {
        foreach (self::$validTypes as $type) {
            Field::macro("asFile$type", function (Field $builder) use ($type) {
                return new static($builder->getClassMetadata(), $builder->getName(), $type);
            });
        }
    }
public static function enable()
    {
        foreach (self::$validTypes as $type) {
            Field::macro("asFile$type", function (Field $builder) use ($type) {
                return new static($builder->getClassMetadata(), $builder->getName(), $type);
            });
        }
    }
public static function enable ( ) { foreach ( self :: $ validTypes as $ type ) { Field :: macro ( "asFile$type" , function ( Field $ builder ) use ( $ type ) { return new static ( $ builder -> getClassMetadata ( ) , $ builder -> getName ( ) , $ type ) ; } ) ; } }
Enable the UploadableFile extension.

@return void
Enable the UploadableFile extension .