-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter-bundle huh.filter.registry to huh.filter.manager renaming fix
- Loading branch information
Rico Kaltofen
committed
Mar 21, 2018
1 parent
afb5fdb
commit 9070e24
Showing
9 changed files
with
213 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
namespace Contao\Fixtures; | ||
|
||
class Config | ||
{ | ||
private static $instance; | ||
|
||
protected function __construct() | ||
{ | ||
$GLOBALS['TL_CONFIG']['timeZone'] = 'GMT'; | ||
$GLOBALS['TL_CONFIG']['characterSet'] = 'UTF-8'; | ||
} | ||
|
||
public static function getInstance() | ||
{ | ||
if (null === static::$instance) { | ||
static::$instance = new static(); | ||
} | ||
|
||
return static::$instance; | ||
} | ||
|
||
public static function set($key, $value) | ||
{ | ||
$GLOBALS['TL_CONFIG'][$key] = $value; | ||
} | ||
|
||
public static function get($key) | ||
{ | ||
if (isset($GLOBALS['TL_CONFIG'][$key])) { | ||
return $GLOBALS['TL_CONFIG'][$key]; | ||
} | ||
|
||
return null; | ||
} | ||
|
||
public static function has($key) | ||
{ | ||
return array_key_exists($key, $GLOBALS['TL_CONFIG']); | ||
} | ||
|
||
public static function preload() | ||
{ | ||
// ignore | ||
} | ||
|
||
public static function isComplete() | ||
{ | ||
return true; | ||
} | ||
} |
Oops, something went wrong.