Replace $this->container->get('XYZ') with $this->get('XYZ')