public function registerAspect(Aspect $aspect): void
    {
        $refAspect = new ReflectionClass($aspect);
        $this->set("aspect.{$refAspect->name}", $aspect, ['aspect']);
        $this->addResource($refAspect->getFileName());
    }
public function registerAspect(Aspect $aspect): void
    {
        $refAspect = new ReflectionClass($aspect);
        $this->set("aspect.{$refAspect->name}", $aspect, ['aspect']);
        $this->addResource($refAspect->getFileName());
    }
public function registerAspect ( Aspect $ aspect ) : void { $ refAspect = new ReflectionClass ( $ aspect ) ; $ this -> set ( "aspect.{$refAspect->name}" , $ aspect , [ 'aspect' ] ) ; $ this -> addResource ( $ refAspect -> getFileName ( ) ) ; }
Register an aspect in the container
Register an aspect in the container