Vendor lock
This commit is contained in:
25
vendor/illuminate/view/ViewName.php
vendored
Normal file
25
vendor/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);
|
||||
}
|
||||
|
||||
[$namespace, $name] = explode($delimiter, $name);
|
||||
|
||||
return $namespace.$delimiter.str_replace('/', '.', $name);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user