Skip to content

Instantly share code, notes, and snippets.

@prodeveloper
Created October 18, 2014 17:52
Show Gist options
  • Save prodeveloper/c5ca0cd944fbbf74a8db to your computer and use it in GitHub Desktop.
Save prodeveloper/c5ca0cd944fbbf74a8db to your computer and use it in GitHub Desktop.
Autosuggest
<?php
namespace Chencha\Autosuggest\Validators;
use Chencha\Autosuggest\Exceptions\PspellIsNotInstalled;
class CheckPspellIsInstalled {
function __construct()
{
if(!function_exists('pspell_new')){
throw new PspellIsNotInstalled;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment