Merge branch 'develop' of github.com:taylorotwell/laravel into develop
This commit is contained in:
@@ -103,6 +103,7 @@ return array(
|
||||
'DB' => 'System\\DB',
|
||||
'Download' => 'System\\Download',
|
||||
'Eloquent' => 'System\\DB\\Eloquent',
|
||||
'File' => 'System\\File',
|
||||
'Form' => 'System\\Form',
|
||||
'Hash' => 'System\\Hash',
|
||||
'HTML' => 'System\\HTML',
|
||||
|
||||
16
system/file.php
Normal file
16
system/file.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php namespace System;
|
||||
|
||||
class File {
|
||||
|
||||
/**
|
||||
* Get a file's extension.
|
||||
*
|
||||
* @param string $path
|
||||
* @return string
|
||||
*/
|
||||
public static function extension($path)
|
||||
{
|
||||
return pathinfo($path, PATHINFO_EXTENSION);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user