Skip to content

undefined constant: PHPMORPHY_STORAGE_FILE #5

Open
@yekver

Description

@yekver

I've got this code:

    $dir = 'includes/morphy_dicts';
    $opts = array(
        'storage' => PHPMORPHY_STORAGE_FILE,
        'predict_by_suffix' => true, 
        'predict_by_db' => true,
        'graminfo_as_text' => true,
    );

    $morphy = new phpMorphy($dir, 'ru_RU', $opts);

Which returns me an error:
Fatal error: Uncaught exception 'phpMorphy_Exception' with message 'Invalid storage type PHPMORPHY_STORAGE_FILE specified' in vendor/makhov/phpmorphy/src/phpMorphy/Storage/Factory.php on line 61

How can I fix this?

P.S. If I use 'file' instead of PHPMORPHY_STORAGE_FILE code works fine!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions