/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/users/tests
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/users/tests/bootstrap.php (3573B)
create(TMP . 'cache/models', 0777);
$TMP->create(TMP . 'cache/persistent', 0777);
$TMP->create(TMP . 'cache/views', 0777);
$cache = [
'default' => [
'engine' => 'File',
],
'_cake_core_' => [
'className' => 'File',
'prefix' => 'users_myapp_cake_core_',
'path' => CACHE . 'persistent/',
'serialize' => true,
'duration' => '+10 seconds',
],
'_cake_model_' => [
'className' => 'File',
'prefix' => 'users_app_cake_model_',
'path' => CACHE . 'models/',
'serialize' => 'File',
'duration' => '+10 seconds',
],
];
Cake\Cache\Cache::setConfig($cache);
Cake\Core\Configure::write('Session', [
'defaults' => 'php',
]);
Configure::write('App', [
'namespace' => 'Users\Test\App',
'encoding' => 'UTF-8',
'base' => false,
'baseUrl' => false,
'dir' => 'src',
'webroot' => WEBROOT_DIR,
'wwwRoot' => WWW_ROOT,
'fullBaseUrl' => 'http://localhost',
'imageBaseUrl' => 'img/',
'jsBaseUrl' => 'js/',
'cssBaseUrl' => 'css/',
'paths' => [
'plugins' => [dirname(APP) . DS . 'plugins' . DS],
'templates' => [dirname(APP) . 'templates' . DS],
],
]);
// \Cake\Core\Configure::write('App.paths.templates', [
// APP . 'Template/',
// ]);
//init router
\Cake\Routing\Router::reload();
Plugin::getCollection()->add(new \CakeDC\Users\Plugin([
'path' => dirname(dirname(__FILE__)) . DS,
'routes' => true,
]));
if (file_exists($root . '/config/bootstrap.php')) {
require $root . '/config/bootstrap.php';
}
$app = new \CakeDC\Users\Test\TestApplication(__DIR__ . DS . 'config');
$app->bootstrap();
$app->pluginBootstrap();