build a pimple container from a yaml file