public function AcquiaPurgeService::__construct in Acquia Purge 7
Construct AcquiaPurgeService.
File
- lib/
AcquiaPurgeService.php, line 104 - Contains AcquiaPurgeService.
Class
- AcquiaPurgeService
- The Acquia Purge service.
Code
public function __construct() {
$this->modulePath = drupal_get_path('module', 'acquia_purge');
// Set and normalize the base path so that it doesn't cause any trouble.
$this->basePath = _acquia_purge_variable('acquia_purge_base_path');
if ($this->basePath !== '/') {
$this->basePath = '/' . trim(trim($this->basePath, '//'), '/') . '/';
}
}