mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-25 12:19:11 -04:00
Include Vendor
This commit is contained in:
25
vendor/laravel/framework/src/Illuminate/View/ViewName.php
vendored
Normal file
25
vendor/laravel/framework/src/Illuminate/View/ViewName.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\View;
|
||||
|
||||
class ViewName
|
||||
{
|
||||
/**
|
||||
* Normalize the given event name.
|
||||
*
|
||||
* @param string $name
|
||||
* @return string
|
||||
*/
|
||||
public static function normalize($name)
|
||||
{
|
||||
$delimiter = ViewFinderInterface::HINT_PATH_DELIMITER;
|
||||
|
||||
if (strpos($name, $delimiter) === false) {
|
||||
return str_replace('/', '.', $name);
|
||||
}
|
||||
|
||||
list($namespace, $name) = explode($delimiter, $name);
|
||||
|
||||
return $namespace.$delimiter.str_replace('/', '.', $name);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user