Example #1
0
 /**
  * Package configuration
  * @return array
  */
 public static function config()
 {
     return ['builder' => function () {
         return new \Wrcx\Losquery\Builder\SqlQueryBuilder(Config::getConfig('select'));
     }, 'common' => function () {
         return new \Aura\SqlQuery\Quoter('"', '"');
     }, 'select' => function () {
         return new \Aura\SqlQuery\Sqlite\Select(\Wrcx\Losquery\Config::getConfig('common'));
     }, 'symfonyProcess' => function () {
         return new \Symfony\Component\Process\Process("echo");
     }, 'process' => function () {
         return new \Wrcx\Losquery\Process\SymfonyProcess(\Wrcx\Losquery\Config::getConfig('symfonyProcess'));
     }];
 }
Example #2
0
 public function __construct()
 {
     $sqlQueryFactory = new SqlQueryFactory(Config::getConfig('builder'));
     $this->factory = $sqlQueryFactory->newInstance();
 }
Example #3
0
 public function __construct()
 {
     $processFactory = new ProcessFactory(Config::getConfig('process'));
     $this->factory = $processFactory->newInstance();
 }