public function create($id, ContainerInterface $container)
    {
        if (isset($this->registeredList['services'][$id])) {
            $data = $this->createService($id, $container);
        } elseif (isset($this->registeredList['params'][$id])) {
            $data = $this->registeredList['params'][$id];
        } else {
            $data = null;
        }

        return $data;
    }
public function create($id, ContainerInterface $container)
    {
        if (isset($this->registeredList['services'][$id])) {
            $data = $this->createService($id, $container);
        } elseif (isset($this->registeredList['params'][$id])) {
            $data = $this->registeredList['params'][$id];
        } else {
            $data = null;
        }

        return $data;
    }
public function create ( $ id , ContainerInterface $ container ) { if ( isset ( $ this -> registeredList [ 'services' ] [ $ id ] ) ) { $ data = $ this -> createService ( $ id , $ container ) ; } elseif ( isset ( $ this -> registeredList [ 'params' ] [ $ id ] ) ) { $ data = $ this -> registeredList [ 'params' ] [ $ id ] ; } else { $ data = null ; } return $ data ; }
Create service or parameter based on configured dependencies.

@param int                $id
@param ContainerInterface $container

@return mixed
Create service or parameter based on configured dependencies .