Respect / Config

A powerful, small, deadly simple configurator and dependency injection container DSL made to be easy
http://respect.github.io/Config
Other
98 stars 7 forks source link

Object with underline not parsed correctly #59

Closed diegocpires closed 9 years ago

diegocpires commented 9 years ago

There is a bug when we have a "variable" with underline, defined as Object and is used in another "variable" as a property.

Eg.

; Database parameteres
db_driver           = "mysql"
db_host             = "localhost"
db_user             = "root"
db_pass             = "test"
charset             = "utf8"
; Database parameteres CEP
db_name_cep             = "cep"
db_dsn_cep              = "[db_driver]:host=[db_host];dbname=[db_name_cep];charset=[charset]"
; Create PDO instance with database parameters
[pdo_cep PDO]
__construct         = [[db_dsn_cep], [db_user], [db_pass]]
; Create Respect/Relational instance with PDO connection
[mapper_cep Respect\Relational\Mapper]
db                  = [pdo_cep]
henriquemoody commented 9 years ago

The fix is not available on version 2.0.1