first
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Nextend\Framework\Pattern;
|
||||
|
||||
use ReflectionClass;
|
||||
|
||||
trait GetPathTrait {
|
||||
|
||||
public static function getPath() {
|
||||
|
||||
$reflection = new ReflectionClass(static::class);
|
||||
|
||||
return dirname($reflection->getFileName());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user