for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @package Fuel\Foundation
* @version 2.0
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2016 Fuel Development Team
* @link http://fuelphp.com
*/
declare(strict_types=1);
namespace Fuel\Foundation;
use ReflectionClass;
abstract class AbstractComponent implements ComponentInterface
{
* Gets the directory where the component's configs can be found.
* This uses reflection so if you have a large number of components it would be advisable to extend this and use
* `__DIR__` to generate a return value.
*
* @return string
public function getConfigPath() : string
$reflection = new ReflectionClass(static::class);
return dirname($reflection->getFileName());
}