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
<?php | |
namespace Config\Transphporm\Readable; | |
class Readable { | |
private function camelCase($val) { | |
$words = preg_split('/(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])/', $val); | |
return implode(' ', $words); | |
} | |
public function readable($val, $splitOnDashes = false) { |
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
<?php | |
namespace Config\Router; | |
class StaticPages implements \Level2\Router\Rule { | |
private $dice; | |
private $static_dir; | |
public function __construct(\Dice\Dice $dice, $static_dir = 'Modules/Static', $layout_xml = 'Layouts/layout.xml') { | |
$this->dice = $dice; | |
$this->static_dir = $static_dir; | |
$this->layout_xml = $layout_xml; |