Source of file _config.php
Size: 0,723 Bytes - Last Modified: 2021-12-23T10:56:24+00:00
/var/www/docs.ssmods.com/process/src/_config.php
12345678910111213141516171819 | <?php if(!class_exists("Faker\Generator")) { throw new RuntimeException("The silverstripe-mock-dataobjects module requires the Faker PHP library. You can install it by running 'composer require fzaninotto/faker:1.1.*@dev' in your web root. If you installed this module via composer, make the directory fzaninotto/faker exists in vendor/."); } define('MOCK_DATAOBJECTS_DIR',basename(dirname(__FILE__))); Object::add_extension('DBField', 'MockDBField'); foreach(SS_ClassLoader::instance()->getManifest()->getDescendantsOf("DBField") as $class) { $mockClass = "Mock{$class}Field"; if(class_exists($mockClass)) { Object::add_extension($class, $mockClass); } } CMSMenu::remove_menu_item('MockChildrenController'); |