Commit 4d7794c2 authored by Michael Hasselbring's avatar Michael Hasselbring

Created file class with File::extension method, added File to aliases under application

parent 5c275db6
......@@ -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',
......
<?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);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment