Page MenuHomeMnkras Phabricator

concrete5 require
ActivePublic

Authored by Mnkras on Dec 29 2014, 10:50 PM.
public function on_start()
{
$fs = new \Illuminate\Filesystem\Filesystem;
try {
$fs->getRequire(__DIR__ . '/vendor/autoload.php');
} catch(\Illuminate\Filesystem\FileNotFoundException $e){
throw new \Exception(t('You forgot to run composer :/'));
}
}

Event Timeline

Mnkras edited the content of this paste. (Show Details)Dec 29 2014, 10:50 PM
Mnkras changed the title of this paste from untitled to concrete5 require.
Mnkras updated the paste's language from autodetect to php.
Mnkras changed the visibility from "All Users" to "Public (No Login Required)".
Mnkras added a project: concrete5.