xp-framework/xp-framework — Issue #96: XPCLI: BC break in properties injection
Author: thekid
Created: 2011-12-31 15:54:47+00:00
State: open
Labels: bc-break

Given the following example XPCLI:

```php
out->writeLine('Inject key = ', $conf->readString('default', 'key'));
}

public function run() {
$this->out->writeLine('Running');
}
}
?>
```

The `configure()` method itself has a problem when a `CompositeProperties` is passed, yielding an IAE. This affects only parts where a type restriction (PHP speak: "type hint") has been used, not those where `@param` or `@inject(type= ...)` was used to declare a `Properties` injection.

Still, we need to decide on one of the following:

1. Ask everyone needs to change their property injection methods to accept `util.PropertyAccess` instead. Add a big fat **heads up** to the XP blog and the ChangeLog file.
2. Change `util.CompositeProperties` to extend `util.Properties` and live with the itch this causes.
3. Add a terrible workaround to `lang.base.php`.

@kiesel - what do you say?