public function registerFromDirectorySource($directory)
    {
        $object = $this->getValidPortableElementFromDirectorySource($directory);
        if (is_null($object)) {
            throw new PortableElementNotFoundException('No valid portable element model found in the directory '.$directory);
        }

        return $this->registerModel($object, $directory);
    }
public function registerFromDirectorySource($directory)
    {
        $object = $this->getValidPortableElementFromDirectorySource($directory);
        if (is_null($object)) {
            throw new PortableElementNotFoundException('No valid portable element model found in the directory '.$directory);
        }

        return $this->registerModel($object, $directory);
    }
public function registerFromDirectorySource ( $ directory ) { $ object = $ this -> getValidPortableElementFromDirectorySource ( $ directory ) ; if ( is_null ( $ object ) ) { throw new PortableElementNotFoundException ( 'No valid portable element model found in the directory ' . $ directory ) ; } return $ this -> registerModel ( $ object , $ directory ) ; }
Register a model from a directory based on manifest.json

@param $directory
@return bool
@throws \common_Exception
Register a model from a directory based on manifest . json