Skip to content

IniFileLoader failes to parse ini #15

Description

@tiborb

The ini file loader IniFileLoader, failes to parse the following file.

[program:FOOBAR2]
command = /vagrant/app/console rabbitmq:dynamic-consumer something customer#FOOBAR2 --env=prod
numprocs = 1
autostart = 0
autorestart = 0

Used code:

$filesystem = new Filesystem(new Adapter\Local(dirname($this->confFile)));

$loader = new IniFileLoader($filesystem, basename($this->confFile));

$configuration = $loader->load(); // throws: The option "autostart" with value 0 is expected to be of type "bool", but is of type "integer".

$this->confFile is the path to the file.

Am I wrong or the ini file parser cannot handle the program sections?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions