<?php
// The controller
class Controller
{
public function indexAction(MyLibrary $obj)
{
$variable = rand(1,10); // this is the variable my library needs
// But this is NOT DI'd as it's only decided here
}
}
// A random object that is a dependency of MyLibrary
class AnotherObject { }
// This is what is DI'd into my controller
class MyLibrary
{
public function __construct(AnotherObject $obj2, $variable) { }
}
// Auryn won't know about the $variable until my controller gets it
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/t9RLm on line 22
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/t9RLm on line 6
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/t9RLm on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/t9RLm on line 6
Process exited with code 255.