for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Hello\Utility;
/**
* Class PathHelper
* @package ByTIC\Hello\Utility
*/
class PathHelper
{
* @param null $path
$path
null
* @return string
public static function keys($path = null)
return dirname(dirname(__DIR__))
. DIRECTORY_SEPARATOR . 'resources'
. DIRECTORY_SEPARATOR . 'keys'
. DIRECTORY_SEPARATOR . $path;
}
* @param $path
* @param $theme
public static function views($path, $theme = null)
return static::viewsTheme($theme) . $path;
public static function viewsTheme($theme = null)
$theme = $theme ? $theme : ThemeHelper::theme();
return static::viewsBase() . DIRECTORY_SEPARATOR . $theme. DIRECTORY_SEPARATOR.'views';
public static function viewsBase()
return dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'themes';