/** Class constructor @param $boot bool @public **/ function __construct($boot = FALSE) { if ($boot) { F3::start(); } // Allow application to override framework methods? if (F3::ref('EXTEND')) { // User assumes risk return; } // Get all framework methods not defined in this class $def = array_diff(get_class_methods('F3'), get_class_methods(__CLASS__)); // Check for conflicts $class = new ReflectionClass($this); foreach ($class->getMethods() as $func) { if (in_array($func->name, $def)) { trigger_error(sprintf(self::TEXT_Conflict, get_called_class() . '->' . $func->name)); } } }