/** * @return \Illuminate\Config\Repository * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ protected function registerConfigure() { $filesystem = new \Illuminate\Filesystem\Filesystem(); $this->app['config']->set("ytake-laravel-aop", $filesystem->getRequire(__DIR__ . '/config/ytake-laravel-aop.php')); $this->app['config']->set("database", $filesystem->getRequire(__DIR__ . '/config/database.php')); $this->app['config']->set("cache", $filesystem->getRequire(__DIR__ . '/config/cache.php')); $this->app['files'] = $filesystem; }
/** * @return \Illuminate\Config\Repository * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ protected function registerConfigure() { $filesystem = new \Illuminate\Filesystem\Filesystem(); $this->app['config']->set("database", $filesystem->getRequire(__DIR__ . '/config/database.php')); $this->app['config']->set("cache", $filesystem->getRequire(__DIR__ . '/config/cache.php')); $this->app['config']->set("session", $filesystem->getRequire(__DIR__ . '/config/session.php')); $this->app['config']->set("queue", $filesystem->getRequire(__DIR__ . '/config/queue.php')); $this->app['config']->set("app", $filesystem->getRequire(__DIR__ . '/config/app.php')); $this->app['files'] = $filesystem; }
protected function setUp() { parent::setUp(); $filesystem = new \Illuminate\Filesystem\Filesystem(); $items = $filesystem->getRequire(__DIR__ . '/config/config.php'); $this->config->set('ytake-laravel-smarty', $items); }
/** * @return \Illuminate\Container\Container * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ protected function createApplicationContainer() { $container = new \Illuminate\Container\Container(); $filesystem = new \Illuminate\Filesystem\Filesystem(); $container->instance('config', new \Illuminate\Config\Repository()); $container->config->set("fluent", $filesystem->getRequire(__DIR__ . '/config/fluent.php')); return $container; }
protected function setUp() { $this->config = new \Illuminate\Config\Repository(); $filesystem = new \Illuminate\Filesystem\Filesystem(); $items = $filesystem->getRequire(__DIR__ . '/config/config.php'); $this->config->set("ytake-laravel-smarty", $items); new \Illuminate\Config\Repository(); $viewFinder = new \Illuminate\View\FileViewFinder($filesystem, ['views'], ['.tpl']); $this->factory = new \Ytake\LaravelSmarty\SmartyFactory(new \Illuminate\View\Engines\EngineResolver(), $viewFinder, new \Illuminate\Events\Dispatcher(), new Smarty(), $this->config); $this->factory->setSmartyConfigure(); $this->factory->addSmartyExtension(); $this->factory->resolveSmartyCache(); }
protected function setUp() { $this->config = new \Illuminate\Config\Repository(); $filesystem = new \Illuminate\Filesystem\Filesystem(); $items = $filesystem->getRequire(__DIR__ . '/config/config.php'); $this->config->set("ytake-laravel-smarty", $items); new \Illuminate\Config\Repository(); $viewFinder = new \Illuminate\View\FileViewFinder($filesystem, ['views'], ['.tpl']); $this->factory = new \Ytake\LaravelSmarty\SmartyFactory(new \Illuminate\View\Engines\EngineResolver(), $viewFinder, new \Illuminate\Events\Dispatcher(), new Smarty(), $this->config); $this->factory->setSmartyConfigure(); $this->factory->resolveSmartyCache(); $extension = $this->config->get('ytake-laravel-smarty.extension', 'tpl'); $this->factory->addExtension($extension, 'smarty', function () { // @codeCoverageIgnoreStart return new \Ytake\LaravelSmarty\Engines\SmartyEngine($this->factory->getSmarty()); // @codeCoverageIgnoreEnd }); }
/** * MockConfig constructor. */ public function __construct() { $filesystem = new \Illuminate\Filesystem\Filesystem(); $services = $filesystem->getRequire(__DIR__ . '/config/services.php'); array_set($this->item, 'services.sendgrid', $services['sendgrid']); }