simple php ioc