Skip to content

Parsing PHP Constants #303

@AlexGural

Description

@AlexGural
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Version/Branch master

Maybe in
Overblog\GraphQLBundle\Config\Parser\YamlParser::parce
method set parser flag to PARSE_CONSTANT.

$typesConfig = self::$yamlParser->parse(file_get_contents($file->getPathname()), Yaml::PARSE_CONSTANT);

Working with enums etc will be more comfortable if we'll have possibility to use constants

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions