Exemplo n.º 1
0
 public function setUp()
 {
     $this->readerFactory = new ReaderFactory();
     $this->readerFactory->addReader(new Reader\Json());
     $this->readerFactory->addReader(new Reader\Form());
     $this->readerFactory->addReader(new Reader\Xml());
 }
Exemplo n.º 2
0
Arquivo: Data.php Projeto: seytar/psx
 /**
  * @return \PSX\Data\ReaderFactory
  */
 public function getReaderFactory()
 {
     $reader = new ReaderFactory();
     $reader->addReader(new Reader\Json(), 16);
     $reader->addReader(new Reader\Form(), 8);
     $reader->addReader(new Reader\Xml(), 0);
     return $reader;
 }