Consider the following code:
class ShopPageElement extends stubAbstractPageElement implements stubXMLPageElement
{
protected $shopEntityManager;
/**
* sets the entity manager for shops
*
* @param ShopEntityManager $shopEntityManager
* @Inject()
*/
public function setShopEntityManager(ShopEntityManager $shopEntityManager)
{
$this->shopEntityManager = $shopEntityManager;
}
// more methods...
}
The type hint ShopEntityManager denotes a concrete class which is already loaded. This should work like normal implicit binding. However this throws a stubBindingException with message Could not create instance of ShopEntityManager. No binding for type ShopEntityManager specified.