protected function detectAppNamespace() { $ref = new \ReflectionObject($this); return $ref->getNamespaceName(); }