コード例 #1
0
ファイル: Renderer.php プロジェクト: kankje/xi-filelib
 /**
  * @param FileLibrary $filelib
  */
 public function attachTo(FileLibrary $filelib)
 {
     $this->fileRepository = $filelib->getFileRepository();
     $this->profiles = $filelib->getProfileManager();
     $this->storage = $filelib->getStorage();
     $this->eventDispatcher = $filelib->getEventDispatcher();
 }
コード例 #2
0
ファイル: Publisher.php プロジェクト: kankje/xi-filelib
 /**
  * @param FileLibrary $filelib
  */
 public function attachTo(FileLibrary $filelib)
 {
     $this->fileRepository = $filelib->getFileRepository();
     $this->profiles = $filelib->getProfileManager();
     $this->eventDispatcher = $filelib->getEventDispatcher();
     $this->eventDispatcher->addSubscriber($this);
     $this->adapter->attachTo($filelib);
     $this->linker->attachTo($filelib);
 }
コード例 #3
0
 public function attachTo(FileLibrary $filelib)
 {
     $this->eventDispatcher = $filelib->getEventDispatcher();
     $this->adapter->attachTo($filelib);
 }
コード例 #4
0
ファイル: FileLibraryTest.php プロジェクト: kankje/xi-filelib
 /**
  * @test
  */
 public function getEventDispatcherShouldWork()
 {
     $ed = $this->getMockedEventDispatcher();
     $filelib = new FileLibrary($this->getMockedStorageAdapter(), $this->getMockedBackendAdapter(), $ed);
     $this->assertSame($ed, $filelib->getEventDispatcher());
 }
コード例 #5
0
ファイル: PluginManager.php プロジェクト: kankje/xi-filelib
 public function __construct(FileLibrary $filelib)
 {
     $this->filelib = $filelib;
     $this->eventDispatcher = $filelib->getEventDispatcher();
 }