コード例 #1
0
ファイル: Dispatcher.php プロジェクト: tritumRz/rest
 /**
  * Initialize
  */
 public function __construct()
 {
     $this->app = new \Bullet\App();
     $this->objectManager = GeneralUtility::makeInstance('Cundd\\Rest\\ObjectManager');
     $this->requestFactory = $this->objectManager->getRequestFactory();
     $this->responseFactory = $this->objectManager->getResponseFactory();
     self::$sharedDispatcher = $this;
 }
コード例 #2
0
ファイル: ObjectManagerTest.php プロジェクト: tritumRz/rest
 /**
  * @test
  */
 public function getResponseFactoryTest()
 {
     $object = $this->fixture->getResponseFactory();
     $this->assertInstanceOf('Cundd\\Rest\\ResponseFactoryInterface', $object);
     $this->assertInstanceOf('Cundd\\Rest\\ResponseFactory', $object);
 }