Ejemplo n.º 1
0
    foreach ($calculatorsSettingsAll as $calculatorsSetting) {
        $calculatorsSettings[$calculatorsSetting->type][$calculatorsSetting->name] = $calculatorsSetting->value;
    }
    // supahacks
    Collector::set('idNewsCatalog', 964);
    Collector::set('idSmallBusinessCategory', array(4));
    Collector::set('idCorporateBusinessCategory', array(2));
    Collector::set('idInvestorRelationsCategory', array(7));
    Collector::set('idAboutAchievements', 1179);
    Collector::set('idSmallBusinessDeposits', 45);
    Collector::set('idDepositsCatalog', 210);
    Collector::set('idCardsCatalog', 18);
    Collector::set('calculatorsSettings', $calculatorsSettings);
    // translates
    $translator = \Yaro\Jarboe\Helpers\Translate::getInstance();
    Collector::set('translates', $translator->getAllStatic());
});
App::after(function ($request, $response) {
    //
});
/*
|--------------------------------------------------------------------------
| Authentication Filters
|--------------------------------------------------------------------------
|
| The following filters are used to verify that the user of the current
| session is logged into this application. The "basic" filter easily
| integrates HTTP Basic authentication for quick, simple checking.
|
*/
Route::filter('auth', function () {
Ejemplo n.º 2
0
 /**
  * Set a header
  *
  * {@inheritdoc}
  *
  * @see DataCollection::set()
  * @param string $key   The key of the header to set
  * @param mixed  $value The value of the header to set
  * @return HeaderDataCollection
  */
 public function set($key, $value)
 {
     $key = $this->normalizeKey($key);
     return parent::set($key, $value);
 }