Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tylko w symfony/: CHANGELOG
- [GIT] diff -r symfony/CHANGELOG.md symfony1/CHANGELOG.md
- 3a4,12
- > 02/08/2017: Version 1.5.10
- > --------------------------
- >
- > * Add support of Throwables #144
- > * Fixed return type in PHPDoc #151
- > * Fix `sfEventLogger`: add priority and event.name overriding #160
- > * Don't try to autoload a trait if it's already been declared #162
- > * Fix/php 7.2 deprecation warnings #163
- >
- Tylko w symfony/: COPYRIGHT
- Tylko w symfony/data/web/sf/sf_web_debug: .gitkeep
- Tylko w symfony/data/web/sf/sf_web_debug/images: .gitkeep
- Tylko w symfony1/: .git
- [GIT] diff -r symfony/lib/action/sfAction.class.php symfony1/lib/action/sfAction.class.php
- 119c119
- < return $this->redirect('@error_404');
- ---
- > return $this->redirect('/'.sfConfig::get('sf_error_404_module').'/'.sfConfig::get('sf_error_404_action'));
- 141c141
- < throw new sfStopException('Forward to ' . $module . '/' . $action);
- ---
- > throw new sfStopException();
- 207c207
- < throw new sfStopException('Redirect ' . $statusCode . ' to ' . (is_array($url) ? $url['sf_route'] : $url));
- ---
- > throw new sfStopException();
- diff -r symfony/lib/autoload/sfAutoload.class.php symfony1/lib/autoload/sfAutoload.class.php
- 188d187
- < $time = sfTimerManager::getTimer('sfAutoload->loadClass()');
- 192c191
- < if (class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false))
- ---
- > if (class_exists($class, false) || interface_exists($class, false) || (function_exists('trait_exists') && trait_exists($class, false)))
- 194d192
- < $time->addTime();
- 213,216d210
- < catch (Error $e)
- < {
- < sfException::createFromError($e)->printStackTrace();
- < }
- 218d211
- < $time->addTime();
- 243,246d235
- < catch (Error $e)
- < {
- < sfException::createFromError($e)->printStackTrace();
- < }
- 248d236
- < $time->addTime();
- 252d239
- < $time->addTime();
- diff -r symfony/lib/autoload/sfCoreAutoload.class.php symfony1/lib/autoload/sfCoreAutoload.class.php
- 14c14
- < define('SYMFONY_VERSION', '1.5.10-dev');
- ---
- > define('SYMFONY_VERSION', '1.5.11-dev');
- diff -r symfony/lib/autoload/sfSimpleAutoload.class.php symfony1/lib/autoload/sfSimpleAutoload.class.php
- 135,138d134
- < catch (Error $e)
- < {
- < sfException::createFromError($e)->printStackTrace();
- < }
- 172d167
- < chmod($this->cacheFile, 0666);
- diff -r symfony/lib/cache/sfMemcacheCache.class.php symfony1/lib/cache/sfMemcacheCache.class.php
- 226c226,229
- < foreach ($this->memcache->get(array_map(create_function('$k', 'return "'.$this->getOption('prefix').'".$k;'), $keys)) as $key => $value)
- ---
- > $prefix = $this->getOption('prefix');
- > $prefixed_keys = array_map(function($k) use ($prefix) { return $prefix . $k; }, $keys);
- >
- > foreach ($this->memcache->get($prefixed_keys) as $key => $value)
- 228c231
- < $values[str_replace($this->getOption('prefix'), '', $key)] = $value;
- ---
- > $values[str_replace($prefix, '', $key)] = $value;
- diff -r symfony/lib/cache/sfSQLiteCache.class.php symfony1/lib/cache/sfSQLiteCache.class.php
- 57c57
- < * @inheritdoc
- ---
- > * @inheritdo
- diff -r symfony/lib/command/cli.php symfony1/lib/command/cli.php
- 20,24c20,25
- < require_once(__DIR__.'/../autoload/sfCoreAutoload.class.php');
- < require_once(__DIR__.'/../../../../FrontController.class.php');
- < sfCoreAutoload::register();
- < } else {
- < require_once $autoload;
- ---
- > require_once(__DIR__.'/../autoload/sfCoreAutoload.class.php');
- > sfCoreAutoload::register();
- > }
- > else
- > {
- > require_once $autoload;
- 34,35d34
- <
- < NewRelicInsights::saveAll();
- 39,43d37
- < if (class_exists('CliErrorHandler', true))
- < {
- < CliErrorHandler::handleException($e);
- < }
- <
- diff -r symfony/lib/command/sfCommandApplication.class.php symfony1/lib/command/sfCommandApplication.class.php
- 608c608,613
- < register_shutdown_function(create_function('', 'fclose(STDIN); fclose(STDOUT); fclose(STDERR); return true;'));
- ---
- > register_shutdown_function(function() {
- > fclose(STDIN);
- > fclose(STDOUT);
- > fclose(STDERR);
- > return true;
- > });
- diff -r symfony/lib/command/sfCommandLogger.class.php symfony1/lib/command/sfCommandLogger.class.php
- 21,25d20
- < * Ignore this log level when coming from 'application.log' listener and $this->level is set to the same value.
- < */
- < const IGNORE_APPLICATION_LOG_LEVEL = sfLogger::INFO;
- <
- < /**
- 54,58d48
- <
- < if (self::IGNORE_APPLICATION_LOG_LEVEL == $this->getLogLevel() && self::IGNORE_APPLICATION_LOG_LEVEL == $priority)
- < {
- < return;
- < }
- diff -r symfony/lib/command/sfCommandManager.class.php symfony1/lib/command/sfCommandManager.class.php
- 117,128c117,119
- < if (version_compare(PHP_VERSION, '5.5.0', '>='))
- < {
- < $arguments = preg_replace_callback(
- < '/(\'|")(.+?)\\1/',
- < function($matches){return str_replace(' ', '=PLACEHOLDER=', $matches[2]);},
- < $arguments);
- < }
- < else
- < {
- < $arguments = preg_replace('/(\'|")(.+?)\\1/e', "str_replace(' ', '=PLACEHOLDER=', '\\2')", $arguments);
- < }
- <
- ---
- > $arguments = preg_replace_callback('/(\'|")(.+?)\\1/', function ($match) {
- > return str_replace(' ', '=PLACEHOLDER=', $match[2]);
- > }, $arguments);
- diff -r symfony/lib/config/config/filters.yml symfony1/lib/config/config/filters.yml
- 17,19c17,18
- < # cache filter execution check moved to sfCacheFilter
- < # param:
- < # condition: %SF_CACHE%
- ---
- > param:
- > condition: %SF_CACHE%
- diff -r symfony/lib/config/sfApplicationConfiguration.class.php symfony1/lib/config/sfApplicationConfiguration.class.php
- 146,156c146
- < if ($this->isDebug())
- < {
- < if ('stderr' != ini_get('display_errors'))
- < {
- < ini_set('display_errors', 'on');
- < }
- < }
- < else
- < {
- < ini_set('display_errors', 'off');
- < }
- ---
- > ini_set('display_errors', $this->isDebug() ? 'on' : 'off');
- diff -r symfony/lib/config/sfConfigCache.class.php symfony1/lib/config/sfConfigCache.class.php
- 150a151,152
- > if (sfConfig::get('sf_debug') && sfConfig::get('sf_logging_enabled'))
- > {
- 151a154
- > }
- 158,159d160
- < $timer->addTime();
- <
- 176,177d176
- < $timer->addTime();
- <
- 200a200,202
- > if (sfConfig::get('sf_debug') && sfConfig::get('sf_logging_enabled'))
- > {
- > /** @var $timer sfTimer */
- 201a204
- > }
- diff -r symfony/lib/config/sfConfigHandler.class.php symfony1/lib/config/sfConfigHandler.class.php
- 80c80
- < array_walk_recursive($value, create_function('&$value', '$value = sfToolkit::replaceConstants($value);'));
- ---
- > array_walk_recursive($value, function(& $value) { $value = sfToolkit::replaceConstants($value); });
- 101c101
- < array_walk_recursive($path, create_function('&$path', '$path = sfConfigHandler::replacePath($path);'));
- ---
- > array_walk_recursive($path, function(&$path) { $path = sfConfigHandler::replacePath($path); });
- diff -r symfony/lib/config/sfFactoryConfigHandler.class.php symfony1/lib/config/sfFactoryConfigHandler.class.php
- 42d41
- < $names = array();
- 91d89
- < $names[] = 'controller';
- 97d94
- < $names[] = 'request';
- 102d98
- < $names[] = 'response1';
- 105d100
- < $names[] = 'response2';
- 118d112
- < $names[] = 'storage';
- 123d116
- < $names[] = 'user';
- 137d129
- < $names[] = 'view_cache';
- 159d150
- < $names[] = 'i18n';
- 182d172
- < $names[] = 'routing';
- 226d215
- < $names[] = 'logger';
- 237d225
- < $names[] = 'mailer';
- 240,246c228,233
- < case 'service_container':
- < $instances[] = (
- < "\$class = require \$this->configuration->getConfigCache()->checkConfig('config/services.yml', true);\n".
- < "\$this->setServiceContainerConfiguration(array('class' => \$class));\n"
- < );
- < $names[] = 'service_container';
- < break;
- ---
- > case 'service_container':
- > $instances[] = (
- > "\$class = require \$this->configuration->getConfigCache()->checkConfig('config/services.yml', true);\n".
- > "\$this->setServiceContainerConfiguration(array('class' => \$class));\n"
- > );
- > break;
- 250,276d236
- < $it1 = <<<TEXT
- <
- < \$global_f_times = array();
- < \$global_f_times['includes']['start'] = microtime(true);
- <
- < TEXT;
- < $it2 = <<<TEXT
- <
- < \$global_f_times['includes']['stop'] = microtime(true);
- <
- < TEXT;
- <
- < foreach ($instances as $i_id => $i_text)
- < {
- < $t1 = <<<TEXT
- <
- < \$global_f_times['{$names[$i_id]}']['start'] = microtime(true);
- <
- < TEXT;
- < $t2 = <<<TEXT
- <
- < \$global_f_times['{$names[$i_id]}']['stop'] = microtime(true);
- <
- < TEXT;
- < $instances[$i_id] = $t1 . $i_text . $t2;
- < }
- <
- 278c238
- < return sprintf("<?php\n".
- ---
- > $retval = sprintf("<?php\n".
- 280,282c240,241
- < "// date: %s\n%s\n%s\n\$GLOBALS['global_f_times'] = \$global_f_times;\n",
- < date('Y/m/d H:i:s'),
- < $it1 . implode("\n", $includes) . $it2,
- ---
- > "// date: %s\n%s\n%s\n",
- > date('Y/m/d H:i:s'), implode("\n", $includes),
- 283a243,244
- >
- > return $retval;
- diff -r symfony/lib/config/sfRoutingConfigHandler.class.php symfony1/lib/config/sfRoutingConfigHandler.class.php
- 45c45
- < $data[] = $this->createRouteWithAdditionalStuff($name, $route);
- ---
- > $data[] = sprintf('$this->routes[\'%s\'] = %s;', $name, var_export(serialize($route), true));
- 55,68d54
- < protected function createRouteWithAdditionalStuff($name, sfRoute $route)
- < {
- < if ($route->getPrependRoute())
- < {
- < $result = sprintf('$this->prependRawLazyRoute(\'%s\', new myLazyRoute(%s));', $name, var_export(serialize($route), true));
- < }
- < else
- < {
- < $result = sprintf('$this->routes[\'%s\'] = new myLazyRoute(%s);', $name, var_export(serialize($route), true));
- < }
- <
- < return $result;
- < }
- <
- 113c99
- < $params['url'] ? $params['url'] : '/',
- ---
- > $params['url'] ?: '/',
- diff -r symfony/lib/config/sfViewConfigHandler.class.php symfony1/lib/config/sfViewConfigHandler.class.php
- 264c264
- < $sub_assets = array();
- ---
- > $position = '';
- 267,270c267,269
- < foreach ($asset as $key => $options)
- < {
- < $sub_asset = array();
- < $sub_asset['key'] = $key;
- ---
- > reset($asset);
- > $key = key($asset);
- > $options = $asset[$key];
- 273c272
- < $sub_asset['position'] = $options['position'];
- ---
- > $position = $options['position'];
- 276,282d274
- < else
- < {
- < $sub_asset['position'] = '';
- < }
- < $sub_asset['options'] = $options;
- < $sub_assets[] = $sub_asset;
- < }
- 286,290c278,279
- < $sub_asset = array();
- < $sub_asset['key'] = $asset;
- < $sub_asset['position'] = '';
- < $sub_asset['options'] = array();
- < $sub_assets[] = $sub_asset;
- ---
- > $key = $asset;
- > $options = array();
- 293,295c282
- < foreach ($sub_assets as $sub_asset)
- < {
- < if ('-*' == $sub_asset['key'])
- ---
- > if ('-*' == $key)
- 299c286
- < else if ('-' == $sub_asset['key'][0])
- ---
- > else if ('-' == $key[0])
- 301c288
- < unset($tmp[substr($sub_asset['key'], 1)]);
- ---
- > unset($tmp[substr($key, 1)]);
- 305,306c292
- < $tmp[$sub_asset['key']] = sprintf(" \$response->add%s('%s', '%s', %s);", $type, $sub_asset['key'], $sub_asset['position'], str_replace("\n", '', var_export($sub_asset['options'], true)));
- < }
- ---
- > $tmp[$key] = sprintf(" \$response->add%s('%s', '%s', %s);", $type, $key, $position, str_replace("\n", '', var_export($options, true)));
- diff -r symfony/lib/controller/sfFrontWebController.class.php symfony1/lib/controller/sfFrontWebController.class.php
- 59,62d58
- < catch (Error $e)
- < {
- < sfException::createFromError($e)->printStackTrace();
- < }
- diff -r symfony/lib/debug/sfWebDebug.class.php symfony1/lib/debug/sfWebDebug.class.php
- 44a45,49
- > if (!isset($this->options['image_root_path']))
- > {
- > $this->options['image_root_path'] = '';
- > }
- >
- 59a65
- > $this->setPanel('symfony_version', new sfWebDebugPanelSymfonyVersion($this));
- 205c211
- < $panel->getTitleUrl() ? $panel->getTitleUrl() : '#',
- ---
- > $panel->getTitleUrl() ?: '#',
- 226c232
- < <a href="#" onclick="sfWebDebugToggleMenu(); return false;"><img src="' . myDataImages::MINIMIZE_ICON_GRAY . '" alt="Debug toolbar" /></a>
- ---
- > <a href="#" onclick="sfWebDebugToggleMenu(); return false;"><img src="'.$this->options['image_root_path'].'/sf.png" alt="Debug toolbar" /></a>
- 231c237
- < <a href="#" onclick="document.getElementById(\'sfWebDebug\').style.display=\'none\'; return false;"><img src="' . myDataImages::CLOSE_ICON_GRAY . '" alt="Close" /></a>
- ---
- > <a href="#" onclick="document.getElementById(\'sfWebDebug\').style.display=\'none\'; return false;"><img src="'.$this->options['image_root_path'].'/close.png" alt="Close" /></a>
- 435d440
- < min-height: 0px;
- 737,746d741
- < .sfWebDebugCache *
- < {
- < box-sizing: border-box;
- < vertical-align: middle;
- < }
- < .sfWebDebugCache img
- < {
- < display: inline;
- < }
- <
- 789c784
- < list-style: number;
- ---
- > list-style: decimal;
- 823,830d817
- < }
- <
- < #sfWebDebugstatisticDetails h4
- < {
- < text-transform: uppercase;
- < color: #000000;
- < text-decoration: underline;
- <
- diff -r symfony/lib/debug/sfWebDebugPanelCache.class.php symfony1/lib/debug/sfWebDebugPanelCache.class.php
- 24c24
- < return '<img src="' . myDataImages::RELOAD_ICON . '" alt="Reload" />';
- ---
- > return '<img src="'.$this->webDebug->getOption('image_root_path').'/reload.png" alt="Reload" />';
- diff -r symfony/lib/debug/sfWebDebugPanel.class.php symfony1/lib/debug/sfWebDebugPanel.class.php
- 95c95
- < return '<a href="#" onclick="sfWebDebugToggle(\''.$element.'\'); return false;" title="'.$title.'"><img src="' . myDataImages::UP_DOWN_TOGGLE_ICON . '" alt="'.$title.'"/></a>';
- ---
- > return '<a href="#" onclick="sfWebDebugToggle(\''.$element.'\'); return false;" title="'.$title.'"><img src="'.$this->webDebug->getOption('image_root_path').'/toggle.gif" alt="'.$title.'"/></a>';
- diff -r symfony/lib/debug/sfWebDebugPanelConfig.class.php symfony1/lib/debug/sfWebDebugPanelConfig.class.php
- 23c23
- < return '<img src="' . myDataImages::GEAR_ICON . '" alt="Config" /> config';
- ---
- > return '<img src="'.$this->webDebug->getOption('image_root_path').'/config.png" alt="Config" /> config';
- diff -r symfony/lib/debug/sfWebDebugPanelLogs.class.php symfony1/lib/debug/sfWebDebugPanelLogs.class.php
- 21,26d20
- < public $icons_prio = array(
- < 'error' => myDataImages::RED_FLAG_ICON,
- < 'warning' => myDataImages::YELLOW_FLAG_ICON,
- < 'info' => myDataImages::GREEN_FLAG_ICON
- < );
- <
- 29c23
- < return '<img src="' . myDataImages::PENCIL_ICON_GRAY . '" alt="Log" /> logs';
- ---
- > return '<img src="'.$this->webDebug->getOption('image_root_path').'/log.png" alt="Log" /> logs';
- 64c58
- < '<img src="' . $this->icons_prio[$priority] . '" alt="'.ucfirst($priority).'"/>',
- ---
- > '<img src="'.$this->webDebug->getOption('image_root_path').'/'.$priority.'.png" alt="'.ucfirst($priority).'"/>',
- 82,84c76,78
- < <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'info\'); return false;"><img src="' . myDataImages::GREEN_FLAG_ICON . '" alt="Show only infos" /></a></li>
- < <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'warning\'); return false;"><img src="' . myDataImages::YELLOW_FLAG_ICON . '" alt="Show only warnings" /></a></li>
- < <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'error\'); return false;"><img src="' . myDataImages::RED_FLAG_ICON . '" alt="Show only errors" /></a></li>
- ---
- > <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'info\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/info.png" alt="Show only infos" /></a></li>
- > <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'warning\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/warning.png" alt="Show only warnings" /></a></li>
- > <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'error\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/error.png" alt="Show only errors" /></a></li>
- diff -r symfony/lib/debug/sfWebDebugPanelMailer.class.php symfony1/lib/debug/sfWebDebugPanelMailer.class.php
- 40c40
- < return '<img src="' . myDataImages::E_MAIL_ICON . '" alt="Emailer" /> '.$logger->countMessages();
- ---
- > return '<img src="'.$this->webDebug->getOption('image_root_path').'/email.png" alt="Emailer" /> '.$logger->countMessages();
- diff -r symfony/lib/debug/sfWebDebugPanelMemory.class.php symfony1/lib/debug/sfWebDebugPanelMemory.class.php
- 25c25
- < return '<img src="' . myDataImages::MINI_APP_WINDOW_ICON . '" alt="Memory" /> '.$totalMemory.' KB';
- ---
- > return '<img src="'.$this->webDebug->getOption('image_root_path').'/memory.png" alt="Memory" /> '.$totalMemory.' KB';
- diff -r symfony/lib/debug/sfWebDebugPanelTimer.class.php symfony1/lib/debug/sfWebDebugPanelTimer.class.php
- 38c38
- < return '<img src="' . myDataImages::WALL_CLOCK_ICON_GRAY . '" alt="Time" /> '.$this->getTotalTime().' ms';
- ---
- > return '<img src="'.$this->webDebug->getOption('image_root_path').'/time.png" alt="Time" /> '.$this->getTotalTime().' ms';
- diff -r symfony/lib/debug/sfWebDebugPanelView.class.php symfony1/lib/debug/sfWebDebugPanelView.class.php
- 102c102
- < return '<img src="' . myDataImages::PAPER_SHEET_ICON . '" alt="View Layer" /> view';
- ---
- > return '<img src="'.$this->webDebug->getOption('image_root_path').'/view.png" alt="View Layer" /> view';
- Tylko w symfony/lib: event_dispatcher
- diff -r symfony/lib/exception/data/exception.html.php symfony1/lib/exception/data/exception.html.php
- 40,42d39
- <
- < <?php if (!empty($visualAid)) echo $visualAid; ?>
- <
- diff -r symfony/lib/exception/sfException.class.php symfony1/lib/exception/sfException.class.php
- 48,56d47
- < static public function createFromError(Error $e)
- < {
- < $exception = new sfException($e->getMessage());
- < $exception->setWrappedException($e);
- < self::$lastException = $e;
- <
- < return $exception;
- < }
- <
- 119,123d109
- <
- < if (class_exists('FrontController', false) && FrontController::getPerformanceMonitor())
- < {
- < FrontController::getPerformanceMonitor()->monitorExceptions($this);
- < }
- diff -r symfony/lib/exception/sfStopException.class.php symfony1/lib/exception/sfStopException.class.php
- 26,29d25
- < if (class_exists('FrontController', false) && FrontController::getPerformanceMonitor())
- < {
- < FrontController::getPerformanceMonitor()->monitorExceptions($this);
- < }
- diff -r symfony/lib/filter/sfBasicSecurityFilter.class.php symfony1/lib/filter/sfBasicSecurityFilter.class.php
- 84c84
- < throw new sfStopException('Forward to secure action.');
- ---
- > throw new sfStopException();
- 96c96
- < throw new sfStopException('Forward to login action.');
- ---
- > throw new sfStopException();
- diff -r symfony/lib/form/sfForm.class.php symfony1/lib/form/sfForm.class.php
- 936c936
- < $secret = $this->localCSRFSecret ? $this->localCSRFSecret : self::$CSRFSecret;
- ---
- > $secret = $this->localCSRFSecret ?: self::$CSRFSecret;
- diff -r symfony/lib/generator/sfModelGeneratorConfiguration.class.php symfony1/lib/generator/sfModelGeneratorConfiguration.class.php
- 103c103
- < 'actions' => $this->getNewActions() ? $this->getNewActions() : $this->getFormActions(),
- ---
- > 'actions' => $this->getNewActions() ?: $this->getFormActions(),
- 108c108
- < 'actions' => $this->getEditActions() ? $this->getEditActions() : $this->getFormActions(),
- ---
- > 'actions' => $this->getEditActions() ?: $this->getFormActions(),
- diff -r symfony/lib/helper/AssetHelper.php symfony1/lib/helper/AssetHelper.php
- 291c291
- < * - file name without extension, like "logo", that gets expanded to "/images/logoOferty-net-20120808.png"
- ---
- > * - file name without extension, like "logo", that gets expanded to "/images/logo.png"
- 301,367c301
- < if ('data:' == substr($source, 0, 5))
- < {
- < return $source;
- < }
- <
- < $path = _compute_public_path($source, sfConfig::get('sf_web_images_dir_name', 'images'), 'png', false);
- < if (strpos($path,'http://') === 0)
- < {
- < return $path;
- < }
- < else
- < {
- < return static_path(substr($path, 1),$absolute);
- < }
- < }
- <
- < /**
- < * Add static domain to path.
- < *
- < * @param string $path
- < * @param bool $absolute
- < *
- < * @return string
- < */
- < function static_path($path, $absolute = false)
- < {
- < if (sfConfig::get('app_static_domain'))
- < {
- < if (!myTools::isServerEnvironmentProd())
- < {
- < $url = sfContext::getInstance()->getRequest()->getUriPrefix();
- <
- < $static_host = sfConfig::get('app_static_domain');
- <
- < if (strpos($url, $static_host) === false)
- < {
- < $site_name = mb_strtolower(sfConfig::get('app_site_name'));
- <
- < $url = str_replace(array('www.', $site_name), array('', $static_host), $url) . '/';
- < }
- < else
- < {
- < $url = str_replace('www.', '', $url) . '/';
- < }
- < }
- < else
- < {
- < $request = sfContext::getInstance()->getRequest();
- <
- < $url = 'http' . ($request->isSecure() ? 's' : '') . '://' . sfConfig::get('app_static_domain') . '/';
- < }
- < }
- < else
- < {
- < if ($absolute)
- < {
- < $request = sfContext::getInstance()->getRequest();
- <
- < $url = 'http'.($request->isSecure() ? 's' : '').'://'.$request->getHost().'/';
- < }
- < else
- < {
- < $url = '/';
- < }
- < }
- <
- < return $url . ltrim($path, '/');
- ---
- > return _compute_public_path($source, sfConfig::get('sf_web_images_dir_name', 'images'), 'png', $absolute);
- 440,444d373
- < if (!isset($options['alt']))
- < {
- < $options['alt'] = '';
- < }
- <
- 448c377
- < function image_lazy_load_tag($source, $image_alt, $tag_attributes = array(), $options = array())
- ---
- > function _compute_public_path($source, $dir, $ext, $absolute = false)
- 450c379
- < if (empty($image_alt))
- ---
- > if (strpos($source, '://') || strpos($source, '//') === 0)
- 452,460c381
- < $error_msg = "image_lazy_load_tag: cannot create image without alt attribute.";
- < if (myTools::isServerEnvironmentDev())
- < {
- < throw new AdsSystemException($error_msg);
- < }
- < else
- < {
- < myDebug::log($error_msg, sfLogger::ERR);
- < }
- ---
- > return $source;
- 463,469c384,386
- < if (!myTools::isReEsiCacheRequest() && UserAgentInfoPeer::getMy()->isBot())
- < {
- < unset($options['auto_add_class']);
- < $options['alt'] = $image_alt;
- < return image_tag($source, $options);
- < }
- < else
- ---
- > $request = sfContext::getInstance()->getRequest();
- > $sf_relative_url_root = $request->getRelativeUrlRoot();
- > if (0 !== strpos($source, '/'))
- 471,498c388
- < $tag_attributes['alt'] = $image_alt;
- < $tag_attributes['src'] = image_path('/t.gif');
- <
- < if (!isset($options['raw_name']))
- < {
- < $tag_attributes['data-original'] = image_path($source, isset($options['absolute']) ? $options['absolute'] : false);
- < }
- < else
- < {
- < $tag_attributes['data-original'] = $source;
- < }
- <
- < if (!isset($options['auto_add_class']) || $options['auto_add_class'])
- < {
- < if (empty($tag_attributes['class']))
- < {
- < $tag_attributes['class'] = 'lazy';
- <
- < }
- < else
- < {
- < $tag_attributes['class'] .= ' lazy';
- < }
- < }
- <
- < ksort($tag_attributes);
- <
- < return tag('img', $tag_attributes, false);
- ---
- > $source = $sf_relative_url_root.'/'.$dir.'/'.$source;
- 500d389
- < }
- 502,504c391,392
- < function _compute_public_path($source, $dir, $ext, $absolute = false)
- < {
- < if (strpos($source, '://') || 0 === strpos($source, '//'))
- ---
- > $query_string = '';
- > if (false !== $pos = strpos($source, '?'))
- 506c394,395
- < return $source;
- ---
- > $query_string = substr($source, $pos);
- > $source = substr($source, 0, $pos);
- 509,512c398
- < $request = sfContext::getInstance()->getRequest();
- < $query_string = '';
- <
- < if ( class_exists('myAssetic') && 0 === strpos($source, myAssetic::ASSETS_PREFIX))
- ---
- > if (false === strpos(basename($source), '.'))
- 514,515c400
- < $source = substr($source, strlen(myAssetic::ASSETS_PREFIX));
- < $source = myAssetic::getAsseticFile($source, $ext);
- ---
- > $source .= '.'.$ext;
- 517c402,403
- < else
- ---
- >
- > if ($sf_relative_url_root && 0 !== strpos($source, $sf_relative_url_root))
- 519,540c405
- < $sf_relative_url_root = $request->getRelativeUrlRoot();
- < if (0 !== strpos($source, '/'))
- < {
- < $source = $sf_relative_url_root.'/'.$dir.'/'.$source;
- < }
- <
- < $query_string = '';
- < if (false !== $pos = strpos($source, '?'))
- < {
- < $query_string = substr($source, $pos);
- < $source = substr($source, 0, $pos);
- < }
- <
- < if (false === strpos(basename($source), '.'))
- < {
- < $source .= '.'.$ext;
- < }
- <
- < if ($sf_relative_url_root && 0 !== strpos($source, $sf_relative_url_root))
- < {
- < $source = $sf_relative_url_root.$source;
- < }
- ---
- > $source = $sf_relative_url_root.$source;
- 547,550d411
- < elseif ('?refresh' == $query_string)
- < {
- < $query_string = _get_file_mtime_qs($source);
- < }
- 556,569d416
- < * Return the given file modification time (if it's possible) as a query string.
- < *
- < * @param string $source
- < *
- < * @return string the file mtime with '?' at the beginning; '?0' means a failure to read the time
- < */
- < function _get_file_mtime_qs($source)
- < {
- < $mtime = (int) @filemtime(sfConfig::get('sf_web_dir') . $source);
- <
- < return '?' . $mtime;
- < }
- <
- < /**
- 596,607d442
- <
- < if ('robots' == $name)
- < {
- < if (false !== stripos($content, 'noindex'))
- < {
- < myDebug::setMonitoringVariable('is_noindex', true);
- < }
- < if (false !== stripos($content, 'nofollow'))
- < {
- < myDebug::setMonitoringVariable('is_nofollow', true);
- < }
- < }
- 683,715d517
- < function include_javascripts_async()
- < {
- < $response = sfContext::getInstance()->getResponse();
- < sfConfig::set('symfony.asset.javascripts_included', true);
- <
- < $lib = array();
- < foreach ($response->getJavascriptsForAsync() as $file => $options)
- < {
- < $lib[] = javascript_path($file);
- < }
- <
- < if (empty($lib))
- < {
- < return;
- < }
- <
- < if (myTools::isServerEnvironmentDev() && myTools::getRequest()->isDebugJsSequenceRequest())
- < {
- < $js = "VSL.loadLibs(['" . implode("','", $lib) . "'], 1000);";
- < }
- < else
- < {
- < $js = "VSL.loadLibs(['" . implode("','", $lib) . "']);";
- < }
- <
- < if (myTools::isServerEnvironmentDev())
- < {
- < $js .= "\nVSL.setJsSequenceNumber('{$response->getJsSequenceNumber()}');";
- < }
- <
- < echo javascript_tag($js);
- < }
- <
- 723c525
- < sfContext::getInstance()->getResponse()->clearJavascripts();
- ---
- > sfContext::getInstance()->getResponse()->clearJavascripts();
- 759c561
- < /** Clear all stylesheets of the response object.
- ---
- > /* Clear all stylesheets of the response object.
- 765,789c567
- < sfContext::getInstance()->getResponse()->clearStylesheets();
- < }
- <
- < function include_stylesheets_async()
- < {
- < $response = sfContext::getInstance()->getResponse();
- < sfConfig::set('symfony.asset.stylesheets_included', true);
- <
- < $js = '';
- < foreach ($response->getStylesheets() as $file => $options) {
- < $source = stylesheet_path($file);
- < $js .= "VSL.loadCSS('$source');\n";
- < }
- <
- < echo javascript_tag($js);
- < }
- <
- < function include_inline_stylesheet($source)
- < {
- < if ( class_exists('myAssetic') && 0 === strpos($source, myAssetic::ASSETS_PREFIX)) {
- < $asset_name = substr($source, strlen(myAssetic::ASSETS_PREFIX));
- < $assetic = Assetic::getInstance()->getAsset($asset_name, Assetic::TYPE_CSS);
- <
- < echo content_tag('style', $assetic->dump(), array('type' => 'text/css'));
- < }
- ---
- > sfContext::getInstance()->getResponse()->clearStylesheets();
- diff -r symfony/lib/helper/DateHelper.php symfony1/lib/helper/DateHelper.php
- 70c70
- < $to_time = $to_time? $to_time: time();
- ---
- > $to_time = $to_time ?: time();
- diff -r symfony/lib/helper/JavascriptBaseHelper.php symfony1/lib/helper/JavascriptBaseHelper.php
- 82c82
- < return content_tag('script', $content, array('type' => 'text/javascript'));
- ---
- > return content_tag('script', javascript_cdata_section($content), array('type' => 'text/javascript'));
- 95,137d94
- < function javascript_tag_async($content = null, $required_objects = array(), $sync_mode = false)
- < {
- < if (null !== $content)
- < {
- < return content_tag('script', get_javascript_async($content, $required_objects, $sync_mode), array('type' => 'text/javascript'));
- < }
- < else
- < {
- < ob_start();
- < }
- < }
- <
- < function get_javascript_async($content = null, $required_objects = array(), $sync_mode = false)
- < {
- < if ($sync_mode)
- < {
- < $js_sync_mode = ',1';
- < }
- < else
- < {
- < $js_sync_mode = '';
- < }
- <
- < if (!empty($required_objects) && !is_array($required_objects))
- < {
- < if (in_array($required_objects, array('$', 'jQuery')))
- < {
- < return "VSR.runWhen$(function(){ $content }{$js_sync_mode});";
- < }
- <
- < $required_objects = array($required_objects);
- < }
- <
- < $js_required_objects = json_encode($required_objects);
- <
- < return "VSR.run(function(){ $content }, {$js_required_objects}{$js_sync_mode});";
- < }
- <
- < function end_javascript_async_tag()
- < {
- < echo javascript_async(ob_get_clean());
- < }
- <
- 191,192c148
- < * @param array $options
- < * @param bool $add_quotation_marks
- ---
- > * @param array
- 195,210c151
- < function options_for_javascript($options, $add_quotation_marks = false)
- < {
- < $opts = array();
- < foreach ($options as $key => $value) {
- < if (is_array($value)) {
- < $value = options_for_javascript($value, $add_quotation_marks);
- < }
- <
- < $opts[] = ($add_quotation_marks?'\'':'').$key.($add_quotation_marks?'\'':'').":".boolean_for_javascript($value);
- < }
- < sort($opts);
- <
- < return '{'.implode(', ', $opts).'}';
- < }
- <
- < function options_for_javascript_v2($options)
- ---
- > function options_for_javascript($options)
- 213d153
- <
- 216,220d155
- < if (strpos($key, ' ')!==false)
- < {
- < $key = '\''.$key.'\'';
- < }
- <
- 223,226c158
- < $value = options_for_javascript_v2($value);
- < }
- < else if (is_int($value))
- < {
- ---
- > $value = options_for_javascript($value);
- 228,236d159
- < else if (is_bool($value))
- < {
- < $value = boolean_for_javascript($value);
- < }
- < else
- < {
- < $value = '\''.$value.'\'';
- < }
- <
- diff -r symfony/lib/helper/NumberHelper.php symfony1/lib/helper/NumberHelper.php
- 3,6c3,8
- < throw new sfException('Do not use NumberHelper, use myTools:formatNumber()');
- <
- < /**
- < * Do not use NumberHelper, use myTools:formatNumber()
- ---
- > /*
- > * This file is part of the symfony package.
- > * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
- > *
- > * For the full copyright and license information, please view the LICENSE
- > * file that was distributed with this source code.
- 8d9
- < function format_number($number, $culture = null) {}
- 11c12,17
- < * Do not use NumberHelper, use myTools:formatNumber()
- ---
- > * NumberHelper.
- > *
- > * @package symfony
- > * @subpackage helper
- > * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- > * @version SVN: $Id$
- 13c19,47
- < function format_currency($amount, $currency = null, $culture = null) {}
- ---
- >
- > function format_number($number, $culture = null)
- > {
- > if (null === $number)
- > {
- > return null;
- > }
- >
- > $numberFormat = new sfNumberFormat(_current_language($culture));
- >
- > return $numberFormat->format($number);
- > }
- >
- > function format_currency($amount, $currency = null, $culture = null)
- > {
- > if (null === $amount)
- > {
- > return null;
- > }
- >
- > $numberFormat = new sfNumberFormat(_current_language($culture));
- >
- > return $numberFormat->format($amount, 'c', $currency);
- > }
- >
- > function _current_language($culture)
- > {
- > return $culture ?: sfContext::getInstance()->getUser()->getCulture();
- > }
- diff -r symfony/lib/helper/TagHelper.php symfony1/lib/helper/TagHelper.php
- 110,114d109
- < if ('class' === $key && empty($value))
- < {
- < continue;
- < }
- <
- diff -r symfony/lib/helper/TextHelper.php symfony1/lib/helper/TextHelper.php
- 281,286c281,288
- < $callback_function = '
- < if (preg_match("/<a\s/i", $matches[1]))
- < {
- < return $matches[0];
- < }
- < ';
- ---
- > $callback_function = function($matches) use ($href_options, $truncate, $truncate_len, $pad) {
- > if (preg_match("/<a\s/i", $matches[1]))
- > {
- > return $matches[0];
- > }
- >
- > $text = $matches[2] . $matches[3];
- > $href = ($matches[2] == "www." ? "http://www." : $matches[2]) . $matches[3];
- 288,291c290
- < if ($truncate)
- < {
- < $callback_function .= '
- < else if (strlen($matches[2].$matches[3]) > '.$truncate_len.')
- ---
- > if ($truncate && strlen($text) > $truncate_len)
- 293c292
- < return $matches[1].\'<a href="\'.($matches[2] == "www." ? "http://www." : $matches[2]).$matches[3].\'"'.$href_options.'>\'.substr($matches[2].$matches[3], 0, '.$truncate_len.').\''.$pad.'</a>\'.$matches[4];
- ---
- > $text = substr($text, 0, $truncate_len).$pad;
- 295,296d293
- < ';
- < }
- 298,303c295,296
- < $callback_function .= '
- < else
- < {
- < return $matches[1].\'<a href="\'.($matches[2] == "www." ? "http://www." : $matches[2]).$matches[3].\'"'.$href_options.'>\'.$matches[2].$matches[3].\'</a>\'.$matches[4];
- < }
- < ';
- ---
- > return sprintf('%s<a href="%s"%s>%s</a>%s', $matches[1], $href, $href_options, $text, $matches[4]);
- > };
- 307c300
- < create_function('$matches', $callback_function),
- ---
- > $callback_function,
- diff -r symfony/lib/helper/UrlHelper.php symfony1/lib/helper/UrlHelper.php
- 30,56d29
- < function link_to_path($name, $path, $options = array())
- < {
- < if (!function_exists('_parse_attributes'))
- < {
- < myTools::useHelper('Tag');
- < }
- < $html_options = _parse_attributes($options);
- <
- < $html_options = _convert_options_to_javascript($html_options);
- <
- < $html_options['href'] = $path;
- <
- < if (isset($html_options['query_string']))
- < {
- < $html_options['href'] .= '?'.$html_options['query_string'];
- < unset($html_options['query_string']);
- < }
- <
- < if (isset($html_options['anchor']))
- < {
- < $html_options['href'] .= '#'.$html_options['anchor'];
- < unset($html_options['anchor']);
- < }
- <
- < return content_tag('a', $name, $html_options);
- < }
- <
- 62,65d34
- < if (!function_exists('_parse_attributes'))
- < {
- < myTools::loadHelpers(['Tag']);
- < }
- diff -r symfony/lib/i18n/sfDateFormat.class.php symfony1/lib/i18n/sfDateFormat.class.php
- 50d49
- < 'N' => 'nmon',
- 493,525d491
- < }
- < }
- <
- < /**
- < * Gets the standalone month.
- < * "N" will return integer 1 through 12
- < * "NN" will return integer 1 through 12 padded with 0 to two characters width
- < * "NNN" will return the abrreviated month name, e.g. "Jan"
- < * "NNNN" will return the month name, e.g. "January"
- < * "NNNNN" will return the narrow month name, e.g. "J"
- < *
- < * @param array $date getdate format.
- < * @param string $pattern a pattern.
- < * @return string month name
- < */
- < protected function getNmon($date, $pattern = 'N')
- < {
- < $month = $date['mon'];
- <
- < switch ($pattern)
- < {
- < case 'N':
- < return $month;
- < case 'NN':
- < return str_pad($month, 2, '0', STR_PAD_LEFT);
- < case 'NNN':
- < return $this->formatInfo->AbbreviatedMonthNames[$month - 1];
- < case 'NNNN':
- < return $this->formatInfo->StandaloneMonthNames[$month - 1];
- < case 'NNNNN':
- < return $this->formatInfo->NarrowMonthNames[$month - 1];
- < default:
- < throw new sfException('The pattern for month is "N", "NN", "NNN", "NNNN", "NNNNN".');
- diff -r symfony/lib/i18n/sfDateTimeFormatInfo.class.php symfony1/lib/i18n/sfDateTimeFormatInfo.class.php
- 336,364d335
- < * A one-dimensional array of type String containing the
- < * culture-specific full names of the months. The array for
- < * InvariantInfo contains "January", "February", "March", "April",
- < * "May", "June", "July", "August", "September", "October", "November",
- < * and "December"
- < *
- < * @return array month names.
- < */
- < function getStandaloneMonthNames()
- < {
- < return $this->data['monthNames']['stand-alone']['wide'];
- < }
- <
- < /**
- < * Sets the month names. The value should be
- < * an array of string starting with Janurary and ends in December.
- < * For example,
- < * <code>array("January", "February", "March", "April", "May", "June",
- < * "July", "August", "September","October","November","December");</code>
- < *
- < * @param array $value month names.
- < */
- < function setStandaloneMonthNames($value)
- < {
- < $this->data['monthNames']['stand-alone']['wide'] = $value;
- < }
- <
- <
- < /**
- diff -r symfony/lib/i18n/sfMessageFormat.class.php symfony1/lib/i18n/sfMessageFormat.class.php
- 139d138
- < $time = sfTimerManager::getTimer('load i18n data');
- 145d143
- < $time->addTime();
- diff -r symfony/lib/i18n/sfMessageSource_File.class.php symfony1/lib/i18n/sfMessageSource_File.class.php
- 162c162
- < $dir = $dir ? $dir : $this->getSource($variant);
- ---
- > $dir = $dir ?: $this->getSource($variant);
- diff -r symfony/lib/i18n/sfMessageSource_MySQL.class.php symfony1/lib/i18n/sfMessageSource_MySQL.class.php
- 150c150
- < $dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] : 'localhost';
- ---
- > $dbhost = $dsninfo['hostspec'] ?: 'localhost';
- diff -r symfony/lib/log/sfStreamLogger.class.php symfony1/lib/log/sfStreamLogger.class.php
- 22c22,23
- < protected $stream = null;
- ---
- > protected
- > $stream = null;
- diff -r symfony/lib/mailer/sfMailer.class.php symfony1/lib/mailer/sfMailer.class.php
- 325,329d324
- <
- < static public function initialize()
- < {
- < require_once sfConfig::get('sf_symfony_lib_dir').'/vendor/swiftmailer/swift_init.php';
- < }
- diff -r symfony/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php symfony1/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php
- 32c32
- < return '<img src="' . myDataImages::DATABASE_ICON . '" alt="SQL queries" /> '.count($events);
- ---
- > return '<img src="'.$this->webDebug->getOption('image_root_path').'/database.png" alt="SQL queries" /> '.count($events);
- 120,123c120
- < $query = implode(
- < var_export(is_scalar($param) ?$param : (string) $param, true),
- < explode('?', $query, 2)
- < );
- ---
- > $query = join(var_export(is_scalar($param) ? $param : (string) $param, true), explode('?', $query, 2));
- diff -r symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineDeleteModelFilesTask.class.php symfony1/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineDeleteModelFilesTask.class.php
- 79c79
- < array_map(create_function('$v', 'return \' - \'.sfDebug::shortenFilePath($v);'), $files),
- ---
- > array_map(function($v) { return ' - '.sfDebug::shortenFilePath($v); }, $files),
- 103c103
- < *
- ---
- > *
- 106c106
- < *
- ---
- > *
- diff -r symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineDropDbTask.class.php symfony1/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineDropDbTask.class.php
- 76c76
- < array_map(create_function('$v', 'return \' - \'.$v;'), array_keys($databases)),
- ---
- > array_map(function($v) { return ' - '.$v; }, array_keys($databases)),
- diff -r symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineMigrateTask.class.php symfony1/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineMigrateTask.class.php
- 140c140
- < array_map(create_function('$e', 'return \' - \'.$e->getMessage();'), $migration->getErrors())
- ---
- > array_map(function($e) { return ' - '.$e->getMessage(); }, $migration->getErrors())
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine: Doctrine
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine: Doctrine.php
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/apps/backend: i18n
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/apps/frontend: i18n
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures: cache
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/data: database1.sqlite
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/data: database2.sqlite
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/data: database3.sqlite
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/data: database3.sqlite-journal
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/lib/filter/doctrine: base
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/lib/form/doctrine: base
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/lib: migration
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/lib/model/doctrine: base
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures: log
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/plugins: .gitkeep
- Tylko w symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures: test
- Tylko w symfony/lib/plugins: sfPropelPlugin
- diff -r symfony/lib/request/sfWebRequest.class.php symfony1/lib/request/sfWebRequest.class.php
- 284c284
- < $pathInfo = preg_replace('/^'.preg_quote($uri_prefix, '/').'/','', rawurldecode($pathArray['REQUEST_URI']));
- ---
- > $pathInfo = preg_replace('/^'.preg_quote($uri_prefix, '/').'/','',$pathArray['REQUEST_URI']);
- diff -r symfony/lib/response/sfWebResponse.class.php symfony1/lib/response/sfWebResponse.class.php
- 368c368
- < setcookie($cookie['name'], $cookie['value'], $cookie['expire'], $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httpOnly']);
- ---
- > setrawcookie($cookie['name'], $cookie['value'], $cookie['expire'], $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httpOnly']);
- diff -r symfony/lib/routing/sfPatternRouting.class.php symfony1/lib/routing/sfPatternRouting.class.php
- 30d29
- < protected $lazy_routes_counter = 0;
- 83,84c82
- < $time = sfTimerManager::getTimer('sfPatternRouting->loadConfiguration()');
- < if ($this->options['load_configuration'] && $config = $this->getConfigFilename())
- ---
- > if ($this->options['load_configuration'] && $config = $this->getConfigFileName())
- 90d87
- < $time->addTime();
- 229,250d225
- < /**
- < * Prepend myLazyRoute to the array of ALL routes (not limited to the currently parsed file).
- < *
- < * Preserves order of prepended routes - all routes with 'prepend_route: true' will have
- < * the same order in the routing as in the file, but they will be moved to the beginning.
- < *
- < * @param string $name
- < * @param myLazyRoute $route
- < */
- < public function prependRawLazyRoute($name, myLazyRoute $route)
- < {
- < $this->routes = array_merge(
- < array_slice($this->routes, 0, $this->lazy_routes_counter),
- < array(
- < $name => $route
- < ),
- < array_slice($this->routes, $this->lazy_routes_counter)
- < );
- <
- < $this->lazy_routes_counter++;
- < }
- <
- 448,453c423
- < $this->currentInternalUri = $this->getUpdatedInternalUri($name, $parameters);
- < }
- <
- < public function getUpdatedInternalUri($name, array $parameters)
- < {
- < $internalUri = array('@'.$name, $parameters['module'].'/'.$parameters['action']);
- ---
- > $internalUri = array('@'.$this->currentRouteName, $parameters['module'].'/'.$parameters['action']);
- 467c437
- < return array($internalUri[0].$params, $internalUri[1].$params);
- ---
- > $this->currentInternalUri = array($internalUri[0].$params, $internalUri[1].$params);
- 564,606c534
- < $all_params = $parameters;
- <
- < if (array_key_exists('module', $parameters))
- < {
- < $module = $parameters['module'];
- < unset($parameters['module']);
- < }
- < else
- < {
- < $module = '<no module specified>';
- < }
- <
- < if (array_key_exists('action', $parameters))
- < {
- < $action = $parameters['action'];
- < unset($parameters['action']);
- < }
- < else
- < {
- < $action = '<no action specified>';
- < }
- <
- < if (empty($parameters))
- < {
- < $message = "$module/$action";
- < }
- < else
- < {
- < foreach ($parameters as $param_name => $value)
- < {
- < if (is_object($value))
- < {
- < $value = '<object ' . get_class($value) . '>';
- < }
- <
- < $parameters[$param_name] = "$param_name=$value";
- < }
- <
- < $message = "$module/$action?" . implode('&', $parameters);
- < }
- <
- < // you have used a 'module/action' style url. Fix it!
- < if (in_array(sfConfig::get('sf_app'), array('oferty', 'domy', 'bezposrednie')))
- ---
- > foreach ($this->routes as $name => $route)
- 608,620c536
- < $error_message = "Using non-named routing rules is illegal. A route '$message' was called";
- < if (sfContext::hasInstance())
- < {
- < $request_object = sfContext::getInstance()->getRequest();
- <
- < if ($request_object instanceof sfWebRequest)
- < {
- < $error_message .= ' in ' . $request_object->getUri();
- < }
- < }
- < $error_message .= '.';
- < trigger_error($error_message, E_USER_WARNING);
- < }
- ---
- > $route = $this->getRoute($name);
- 622,625c538
- < $this->ensureDefaultParametersAreSet();
- < foreach ($this->routes as $route)
- < {
- < if ($route->matchesParameters($all_params, $this->options['context']))
- ---
- > if ($route->matchesParameters($parameters, $this->options['context']))
- diff -r symfony/lib/routing/sfRoute.class.php symfony1/lib/routing/sfRoute.class.php
- 42,43d41
- < protected $prepend_route = false;
- <
- 62,63d59
- < $this->setPrependRoute($defaults, $options);
- <
- 93,117d88
- < public function getPrependRoute()
- < {
- < return $this->prepend_route;
- < }
- <
- < protected function setPrependRoute($defaults, $options)
- < {
- < if (isset($options['prepend_route']))
- < {
- < if (true === $options['prepend_route'])
- < {
- < $this->prepend_route = true;
- < }
- < unset($options['prepend_route']);
- < }
- < elseif (isset($defaults['re_esi_cache_request']) && $defaults['re_esi_cache_request'])
- < {
- < $this->prepend_route = true;
- < }
- < else
- < {
- < // nothing
- < }
- < }
- <
- 728c699
- < $preg_quote_hash = create_function('$a', 'return preg_quote($a, \'#\');');
- ---
- > $preg_quote_hash = function($a) { return preg_quote($a, '#'); };
- 738c709
- < $preg_quote_hash_53 = create_function('$a', 'return str_replace(\'-\', \'\-\', preg_quote($a, \'#\'));');
- ---
- > $preg_quote_hash_53 = function($a) { return str_replace('-', '\-', preg_quote($a, '#')); };
- diff -r symfony/lib/storage/sfSessionStorage.class.php symfony1/lib/storage/sfSessionStorage.class.php
- 95,98c95
- < if (!session_start())
- < {
- < myDebug::log('Problem with start session using `session_start()`.', sfLogger::ERR);
- < }
- ---
- > session_start();
- diff -r symfony/lib/task/cache/sfCacheClearTask.class.php symfony1/lib/task/cache/sfCacheClearTask.class.php
- 24,26d23
- < protected $type = null;
- < protected $server_env = null;
- <
- 67,68c64,65
- < The built-in types are: [config|COMMENT], [i18n|COMMENT], [routing|COMMENT], [module|COMMENT],
- < [template|COMMENT] and [assetic|COMMENT].
- ---
- > The built-in types are: [config|COMMENT], [i18n|COMMENT], [routing|COMMENT], [module|COMMENT]
- > and [template|COMMENT].
- 86,88d82
- < $this->type = $options['type'];
- < $this->server_env = null === $this->getEnvironment() ? @file_get_contents('server_env') : $this->getEnvironment();
- <
- 150d143
- < $this->clearAsseticCache($appConfiguration);
- 202,223d194
- < }
- < }
- <
- < public function clearAsseticCache(sfApplicationConfiguration $appConfiguration)
- < {
- < if ($this->server_env != 'dev' && 'assetic' != $this->type)
- < {
- < return;
- < }
- <
- < $assetic_types = array(
- < Assetic::TYPE_CSS,
- < Assetic::TYPE_JS,
- < Assetic::TYPE_JSON,
- < Assetic::TYPE_STATIC_STORAGE
- < );
- <
- < $removed = myAssetic::removeAllCompressedFiles();
- <
- < foreach ($removed as $file)
- < {
- < $this->logSection(is_link($file) ? 'link-' : 'file-', $file);
- diff -r symfony/lib/task/generator/sfGenerateAppTask.class.php symfony1/lib/task/generator/sfGenerateAppTask.class.php
- 98,103d97
- < sfConfig::set('sf_web_dir', sfConfig::get('sf_web_dir') . DIRECTORY_SEPARATOR . $app);
- < if (!is_dir(sfConfig::get('sf_web_dir')))
- < {
- < $this->getFilesystem()->mkdirs(sfConfig::get('sf_web_dir'));
- < }
- <
- diff -r symfony/lib/task/generator/sfGenerateProjectTask.class.php symfony1/lib/task/generator/sfGenerateProjectTask.class.php
- 62,65c62
- < By default, the task configures Doctrine as the ORM. If you want to use
- < Propel, use the [--orm|COMMENT] option:
- <
- < [./symfony generate:project blog --orm=Propel|INFO]
- ---
- > By default, the task configures Doctrine as the ORM.
- 93c90
- < if (!in_array(strtolower($options['orm']), array('propel', 'doctrine', 'none')))
- ---
- > if (!in_array(strtolower($options['orm']), array('doctrine', 'none')))
- 129c126
- < if (in_array($options['orm'], array('Doctrine', 'Propel')))
- ---
- > if ('Doctrine' === $options['orm'])
- Tylko w symfony/lib/task/generator/skeleton/app/app/lib: .sf
- Tylko w symfony/lib/task/generator/skeleton/app: lib
- diff -r symfony/lib/task/help/sfListTask.class.php symfony1/lib/task/help/sfListTask.class.php
- 157c157
- < $namespaceArrayXML[$task->getNamespace()]->setAttribute('id', $task->getNamespace() ? $task->getNamespace() : '_global');
- ---
- > $namespaceArrayXML[$task->getNamespace()]->setAttribute('id', $task->getNamespace() ?: '_global');
- diff -r symfony/lib/task/project/sfProjectPermissionsTask.class.php symfony1/lib/task/project/sfProjectPermissionsTask.class.php
- 6c6
- < *
- ---
- > *
- 25,27d24
- < public static $apps_for_locationTop = array('domy', 'oferty', 'morizon', 'morizon_mobile', 'nportal', 'morizon_wp', 'noweinwestycje');
- < public static $apps_for_assetic = array('admin', 'oferty', 'oferty_mobile', 'domy', 'domy_mobile', 'morizon', 'morizon_mobile', 'noweinwestycje', 'bezposrednie', 'komercyjne', 'nieruchomosci', 'nportal', 'morizon_wp');
- <
- 57,61d53
- < $this->chmod('plugins/StaticCachePlugin/web/locations', 0777);
- < $this->chmod('plugins/StaticCachePlugin/web/post', 0777);
- < $this->chmod('plugins/StaticCachePlugin/web/property_add', 0777);
- < $this->chmod('cache_thumbnails/QRcode', 0777);
- < $this->chmod(sfConfig::get('sf_data_dir') . '/property_cpv', 0777);
- 67,69d58
- < 'plugins/StaticCachePlugin/web/locations',
- < 'plugins/StaticCachePlugin/web/post',
- < 'plugins/StaticCachePlugin/web/property_add'
- 81,108d69
- < $this->chmod('cache_thumbnails', 0777);
- < $this->chmod('log_my', 0777);
- < $this->chmod('log_cron', 0777);
- <
- < // for locationTop
- < foreach (self::$apps_for_locationTop as $app)
- < {
- < $this->chmod('web/'.$app.'/js/loc', 0777);
- < }
- <
- < // for assetic
- < foreach (self::$apps_for_assetic as $app)
- < {
- < $this->chmod('web/'.$app.'/js/auto', 0777);
- < $this->chmod('web/'.$app.'/css/auto', 0777);
- < }
- <
- < $this->chmod('web/morizon/json/auto', 0777);
- < $this->chmod('web/morizon_wp/json/auto', 0777);
- <
- < $event_folder = EventMonitorProvider::getInstance()->getDirectory();
- < if (!file_exists($event_folder))
- < {
- < mkdir($event_folder);
- < }
- <
- < $this->chmod($event_folder, 0777);
- <
- 114c75
- < array_map(create_function('$f', 'return \' - \'.sfDebug::shortenFilePath($f);'), $this->failed)
- ---
- > array_map(function($f) { return ' - '.sfDebug::shortenFilePath($f); }, $this->failed)
- 121c82
- < *
- ---
- > *
- 125c86
- < *
- ---
- > *
- 151c112
- < *
- ---
- > *
- diff -r symfony/lib/task/sfBaseTask.class.php symfony1/lib/task/sfBaseTask.class.php
- 21,27d20
- < const AUTO_ENV = '_auto_';
- <
- < const RETURN_VALUE_OK = 0;
- < const RETURN_VALUE_EXCEPTION = 1;
- < const RETURN_VALUE_ERROR = 255;
- < const RETURN_VALUE_NOT_FINISHED = 2;
- <
- 30c23
- < $pluginManager = null,
- ---
- > $pluginManager = null,
- 33,37d25
- < /**
- < * @var Services
- < */
- < protected $services;
- <
- 62c50
- < $env = $this->detectEnvironment($commandManager);
- ---
- > $env = $commandManager->getOptionSet()->hasOption('env') ? $commandManager->getOptionValue('env') : 'test';
- 76,81d63
- < else
- < {
- < $this->environment = false;
- <
- < $application = null;
- < }
- 88,95d69
- < myTools::setSessionOffRequest();
- <
- < $monitor = MonitorTaskListPeer::monitorStart($this->configuration, $this->getFullName(), $this->getEnvironment(), $application);
- < if (function_exists('newrelic_name_transaction'))
- < {
- < newrelic_name_transaction('/re.frontend/' . $this->getFullName());
- < }
- <
- 98,99d71
- < $monitor->monitorEnd();
- <
- 103,149d74
- < }
- <
- < protected $environment = null;
- <
- < protected function getEnvironment()
- < {
- < return $this->environment;
- < }
- <
- < protected function detectEnvironment(sfCommandManager $commandManager)
- < {
- < if (null === $this->environment)
- < {
- < $env = $commandManager->getOptionSet()->hasOption('env') ? $commandManager->getOptionValue('env') : self::AUTO_ENV;
- <
- < $server_env = ProjectConfiguration::getServerEnvironment();
- <
- < if (self::AUTO_ENV == $env)
- < {
- < switch ($server_env)
- < {
- < case ProjectConfiguration::SERVER_ENV_PROD: $env = 'prod'; break;
- < case ProjectConfiguration::SERVER_ENV_RC: $env = 'rc'; break;
- < case ProjectConfiguration::SERVER_ENV_DEV: $env = 'dev'; break;
- < default:
- < throw new Exception("Server environment $server_env not implemented here.");
- < }
- < }
- < elseif (ProjectConfiguration::SERVER_ENV_PROD == $server_env)
- < {
- < if ('prod' != $env)
- < {
- < $this->logSection('WARNING', "You are using non-prod environment `$env` on production site. Consider using `_auto_` environment option or --env switch.", 200);
- < }
- < }
- < else
- < {
- < if ('prod' == $env)
- < {
- < throw new sfException("Production environment cannot be used on dev or rc machines. Use --env switch or set environment option to `_auto_`.");
- < }
- < }
- <
- < $this->environment = $env;
- < }
- <
- < return $this->environment;
- diff -r symfony/lib/task/sfCommandApplicationTask.class.php symfony1/lib/task/sfCommandApplicationTask.class.php
- 143,148d142
- < /* old way
- < require_once sfConfig::get('sf_symfony_lib_dir').'/vendor/swiftmailer/classes/Swift.php';
- < Swift::registerAutoload();
- < sfMailer::initialize();
- < */
- <
- diff -r symfony/lib/task/sfTask.class.php symfony1/lib/task/sfTask.class.php
- 482c482
- < return $ret ? $ret : $default;
- ---
- > return $ret ?: $default;
- 591c591
- < $taskXML->setAttribute('namespace', $this->getNamespace() ? $this->getNamespace() : '_global');
- ---
- > $taskXML->setAttribute('namespace', $this->getNamespace() ?: '_global');
- diff -r symfony/lib/util/sfBrowserBase.class.php symfony1/lib/util/sfBrowserBase.class.php
- 804c804
- < $method = strtolower(isset($options['method']) ? $options['method'] : ($item->getAttribute('method') ? $item->getAttribute('method') : 'get'));
- ---
- > $method = strtolower(isset($options['method']) ? $options['method'] : ($item->getAttribute('method') ?: 'get'));
- 930c930
- < $tmps = array_filter(preg_split('/(\[ | \[\] | \])/x', $name), create_function('$s', 'return $s !== "";'));
- ---
- > $tmps = array_filter(preg_split('/(\[ | \[\] | \])/x', $name), function($s) { return $s !== ''; });
- diff -r symfony/lib/util/sfContext.class.php symfony1/lib/util/sfContext.class.php
- 92,95d91
- < catch (Error $e)
- < {
- < sfException::createFromError($e)->printStackTrace();
- < }
- diff -r symfony/lib/util/sfDomCssSelector.class.php symfony1/lib/util/sfDomCssSelector.class.php
- 164c164
- < $tagName = $matches[1] ? $matches[1] : '*';
- ---
- > $tagName = $matches[1] ?: '*';
- 543c543
- < return array('selector' => $matches[1], 'parameter' => isset($matches[3]) ? ($matches[3] ? $matches[3] : $matches[4]) : '');
- ---
- > return array('selector' => $matches[1], 'parameter' => isset($matches[3]) ? ($matches[3] ?: $matches[4]) : '');
- diff -r symfony/lib/util/sfToolkit.class.php symfony1/lib/util/sfToolkit.class.php
- 511c511
- < $path = getenv('PATH') ? getenv('PATH') : getenv('Path');
- ---
- > $path = getenv('PATH') ?: getenv('Path');
- diff -r symfony/lib/validator/sfValidatorChoice.class.php symfony1/lib/validator/sfValidatorChoice.class.php
- 165,169d164
- < if (is_array($value))
- < {
- < return false;
- < }
- <
- diff -r symfony/lib/validator/sfValidatorDate.class.php symfony1/lib/validator/sfValidatorDate.class.php
- 72c72
- < if (!preg_match($regex, $value, $matches))
- ---
- > if (!preg_match($regex, $value, $match))
- 74c74
- < throw new sfValidatorError($this, 'bad_format', array('value' => $value, 'date_format' => $this->getOption('date_format_error') ? $this->getOption('date_format_error') : $this->getOption('date_format')));
- ---
- > throw new sfValidatorError($this, 'bad_format', array('value' => $value, 'date_format' => $this->getOption('date_format_error') ?: $this->getOption('date_format')));
- 77,85c77
- < if (count($matches) == 1)
- < {
- < $value = $matches[0];
- < }
- < else
- < {
- < unset($matches[0]);
- < $value = $matches;
- < }
- ---
- > $value = $match;
- diff -r symfony/lib/validator/sfValidatorErrorSchema.class.php symfony1/lib/validator/sfValidatorErrorSchema.class.php
- 286,287c286,287
- < array_map(create_function('$e', 'return $e->getCode();'), $this->globalErrors),
- < array_map(create_function('$n,$e', 'return $n.\' [\'.$e->getCode().\']\';'), array_keys($this->namedErrors), array_values($this->namedErrors))
- ---
- > array_map(function($e) { /** @var $e sfValidatorError */ return $e->getCode(); }, $this->globalErrors),
- > array_map(function($n, $e) { /** @var $e sfValidatorError */ return $n.' ['.$e->getCode().']'; }, array_keys($this->namedErrors), array_values($this->namedErrors))
- 297,298c297,298
- < array_map(create_function('$e', 'return $e->getMessage();'), $this->globalErrors),
- < array_map(create_function('$n,$e', 'return $n.\' [\'.$e->getMessage().\']\';'), array_keys($this->namedErrors), array_values($this->namedErrors))
- ---
- > array_map(function($e) { /** @var $e sfValidatorError */ return $e->getMessage(); }, $this->globalErrors),
- > array_map(function($n, $e) { /** @var $e sfValidatorError */ return $n.' ['.$e->getMessage().']'; }, array_keys($this->namedErrors), array_values($this->namedErrors))
- diff -r symfony/lib/validator/sfValidatorFromDescription.class.php symfony1/lib/validator/sfValidatorFromDescription.class.php
- 297c297
- < return sprintf('new %s(%s)', $this->class, implode(', ', array_map(create_function('$a', 'return var_export($a, true);'), $this->arguments)));
- ---
- > return sprintf('new %s(%s)', $this->class, implode(', ', array_map(function($a) { return var_export($a, true); }, $this->arguments)));
- 356c356
- < implode(', ', array_map(create_function('$a', 'return var_export($a, true);'), $this->arguments))
- ---
- > implode(', ', array_map(function($a) { return var_export($a, true); }, $this->arguments))
- Tylko w symfony/lib/validator: sfValidatorSchemaForEach.class.php
- diff -r symfony/lib/validator/sfValidatorString.class.php symfony1/lib/validator/sfValidatorString.class.php
- 21,23d20
- <
- < protected $search = array("\t","\n","\r\n","\0","\v");
- <
- 51,52d47
- <
- < $this->setMessage('invalid', '"%value%" is not a string.');
- 60,65c55
- < if (is_array($value) || is_object($value))
- < {
- < throw new sfValidatorError($this, 'invalid', array('value' => $value));
- < }
- <
- < $clean = str_replace($this->search,'',(string) $value);
- ---
- > $clean = (string) $value;
- diff -r symfony/lib/vendor/lime/lime.php symfony1/lib/vendor/lime/lime.php
- 818,821d817
- <
- < /**
- < * @var lime_output
- < */
- 838,839c834
- < 'custom' => false,
- < 'test_path' => sys_get_temp_dir(),
- ---
- > 'test_path' => sys_get_temp_dir(),
- 923,924d917
- < $this->output->echoln('');
- <
- 945,946d937
- < $output_contents = '';
- <
- 950,953d940
- < if ($this->options['custom'])
- < {
- < $output_contents = ob_get_contents();
- < }
- 961,965c948
- < $stats['output'] = array(array('file' => $file, 'tests' => array(), 'stats' => array('plan' => 1, 'total' => 1, 'failed' => array(0), 'passed' => array(), 'skipped' => array())));
- < }
- < else
- < {
- < $output_contents = '';
- ---
- > $stats['output'] = array(array('file' => $file, 'tests' => array(), 'stats' => array('plan' => 1, 'total' => 1, 'failed' => array(0), 'passed' => array(), 'skipped' => array(), 'errors' => array())));
- 1034,1067c1017
- < if ($this->options['custom'])
- < {
- < $tests_details = $stats['output'][0]['tests'];
- <
- < $tests_ok = array();
- < foreach ($tests_details as $test_no => $test_data)
- < {
- < if ($test_data['status'])
- < {
- < $tests_ok[] = $test_no;
- < }
- < }
- <
- < if ($tests_ok)
- < {
- < $this->output->echoln(sprintf(" Tests ok: %s", implode(', ', $tests_ok)));
- < }
- <
- < foreach ($tests_details as $test_no => $test_data)
- < {
- < if (!$test_data['status'])
- < {
- < $this->output->echoln(sprintf(" %d: %s => %s",
- < $test_no,
- < trim($test_data['message']),
- < empty($test_data['error']) ? 'failed' : preg_replace('/[\s\n]+/', ' ', str_replace("\n", ' ', trim($test_data['error'])))
- < ));
- < }
- < }
- < }
- < else
- < {
- < $this->output->echoln(sprintf(" Failed tests: %s", implode(', ', $file_stats['failed'])));
- < }
- ---
- > $this->output->echoln(sprintf(" Failed tests: %s", implode(', ', $file_stats['failed'])));
- 1070,1075d1019
- < if ($output_contents)
- < {
- < echo "\n------------ DEBUG ------------\n$output_contents\n------------ END ------------\n\n";
- < throw new sfException("Test crashed, see debug message.");
- < }
- <
- 1094c1038,1043
- < if (!$this->options['custom'])
- ---
- > $format = "%-30s %4s %5s %5s %5s %s";
- > $this->output->echoln(sprintf($format, 'Failed Test', 'Stat', 'Total', 'Fail', 'Errors', 'List of Failed'));
- > $this->output->echoln("--------------------------------------------------------------------------");
- > foreach ($this->stats['files'] as $file => $stat)
- > {
- > if (!in_array($file, $this->stats['failed_files']))
- 1096,1115c1045,1047
- < $format = "%-30s %4s %5s %5s %5s %s";
- < $this->output->echoln(sprintf($format, 'Failed Test', 'Stat', 'Total', 'Fail', 'Errors', 'List of Failed'));
- < $this->output->echoln("--------------------------------------------------------------------------");
- < foreach ($this->stats['files'] as $file => $stat)
- < {
- < if (!in_array($file, $this->stats['failed_files']))
- < {
- < continue;
- < }
- < $relative_file = $this->get_relative_file($file);
- <
- < if (isset($stat['output'][0]))
- < {
- < $this->output->echoln(sprintf($format, substr($relative_file, -min(30, strlen($relative_file))), $stat['status_code'], count($stat['output'][0]['stats']['failed']) + count($stat['output'][0]['stats']['passed']), count($stat['output'][0]['stats']['failed']), count($stat['output'][0]['stats']['errors']), implode(' ', $stat['output'][0]['stats']['failed'])));
- < }
- < else
- < {
- < $this->output->echoln(sprintf($format, substr($relative_file, -min(30, strlen($relative_file))), $stat['status_code'], '', '', ''));
- < }
- < }
- ---
- > continue;
- > }
- > $relative_file = $this->get_relative_file($file);
- 1117,1118c1049,1057
- < $this->output->echoln('');
- < }
- ---
- > if (isset($stat['output'][0]))
- > {
- > $this->output->echoln(sprintf($format, substr($relative_file, -min(30, strlen($relative_file))), $stat['status_code'], count($stat['output'][0]['stats']['failed']) + count($stat['output'][0]['stats']['passed']), count($stat['output'][0]['stats']['failed']), count($stat['output'][0]['stats']['errors']), implode(' ', $stat['output'][0]['stats']['failed'])));
- > }
- > else
- > {
- > $this->output->echoln(sprintf($format, substr($relative_file, -min(30, strlen($relative_file))), $stat['status_code'], '', '', ''));
- > }
- > }
- 1131,1132d1069
- < $this->output->echoln('');
- <
- 1162,1163d1098
- <
- < $this->output->echoln('');
- Tylko w symfony/lib/vendor/swiftmailer: classes
- Tylko w symfony/lib/vendor/swiftmailer: dependency_maps
- Tylko w symfony/lib/vendor/swiftmailer: mime_types.php
- Tylko w symfony/lib/vendor/swiftmailer: preferences.php
- Tylko w symfony/lib/vendor/swiftmailer: swift_init.php
- Tylko w symfony/lib/vendor/swiftmailer: swift_required_pear.php
- Tylko w symfony/lib/vendor/swiftmailer: swift_required.php
- diff -r symfony/lib/view/sfPartialView.class.php symfony1/lib/view/sfPartialView.class.php
- 93,97d92
- < if (sfConfig::get('sf_debug') && sfConfig::get('sf_logging_enabled'))
- < {
- < $timer->addTime();
- < }
- <
- diff -r symfony/lib/view/sfViewCacheManager.class.php symfony1/lib/view/sfViewCacheManager.class.php
- 288,294c288
- <
- < /**
- < * Zmiana kodowania parametrów dla cache-a akcji
- < * https://intranet.melog.com/mantis/view.php?id=3076289
- < * @author rlalak
- < */
- < /* foreach ($params as $key => $value)
- ---
- > foreach ($params as $key => $value)
- 297,298c291
- < } */
- < $cacheKey .= '/' . $this->computeCacheKey($params);
- ---
- > }
- 1049c1042
- < <div style="height: 16px; padding: 2px"><a href="#" onclick="sfWebDebugToggle(\'sub_main_info_'.$id.'\'); return false;"><strong>cache information</strong></a> <a href="#" onclick="sfWebDebugToggle(\'sub_main_'.$id.'\'); document.getElementById(\'main_'.$id.'\').style.border = \'none\'; return false;">'.image_tag(myDataImages::CLOSE_ICON_GRAY, array('alt' => 'close')).'</a> </div>
- ---
- > <div style="height: 16px; padding: 2px"><a href="#" onclick="sfWebDebugToggle(\'sub_main_info_'.$id.'\'); return false;"><strong>cache information</strong></a> <a href="#" onclick="sfWebDebugToggle(\'sub_main_'.$id.'\'); document.getElementById(\'main_'.$id.'\').style.border = \'none\'; return false;">'.image_tag(sfConfig::get('sf_web_debug_web_dir').'/images/close.png', array('alt' => 'close')).'</a> </div>
- diff -r symfony/lib/widget/sfWidget.class.php symfony1/lib/widget/sfWidget.class.php
- 365c365
- < return self::fixDoubleEscape(htmlspecialchars(!is_array($value) ? (string) $value : null, ENT_QUOTES, self::getCharset()));
- ---
- > return self::fixDoubleEscape(htmlspecialchars((string) $value, ENT_QUOTES, self::getCharset()));
- diff -r symfony/lib/widget/sfWidgetFormInput.class.php symfony1/lib/widget/sfWidgetFormInput.class.php
- 55,62d54
- < // https://intranet.melog.com/mantis/view.php?id=4399613
- < if(! array_key_exists('class', $attributes))
- < {
- < $attributes['class'] = '';
- < }
- < $attributes['class'] .= ' custom'.ucfirst(strtolower($this->getOption('type')));
- < $attributes['class'] = trim($attributes['class']);
- <
- Tylko w symfony/lib/widget: sfWidgetFormSchemaForEach.class.php
- diff -r symfony/lib/widget/sfWidgetFormSelectCheckbox.class.php symfony1/lib/widget/sfWidgetFormSelectCheckbox.class.php
- 64,71d63
- < // https://intranet.melog.com/mantis/view.php?id=4399613
- < if(! array_key_exists('class', $attributes))
- < {
- < $attributes['class'] = '';
- < }
- < $attributes['class'] .= ' customCheckbox';
- < $attributes['class'] = trim($attributes['class']);
- <
- diff -r symfony/lib/widget/sfWidgetFormSelectRadio.class.php symfony1/lib/widget/sfWidgetFormSelectRadio.class.php
- 64,71d63
- < // https://intranet.melog.com/mantis/view.php?id=4399613
- < if(! array_key_exists('class', $attributes))
- < {
- < $attributes['class'] = '';
- < }
- < $attributes['class'] .= ' customRadio';
- < $attributes['class'] = trim($attributes['class']);
- <
- 108c100
- < if ((string)$key == (string)($value === false ? 0 : (is_array($value) ? end($value) : $value)))
- ---
- > if ((string) $key == (string) ($value === false ? 0 : $value))
- Tylko w symfony/lib/yaml: sfYamlDumper.php
- Tylko w symfony/lib/yaml: sfYamlInline.php
- Tylko w symfony/lib/yaml: sfYamlParser.php
- Tylko w symfony/lib/yaml: sfYaml.php
- Tylko w symfony/: LICENSE
- Tylko w symfony/: README
- diff -r symfony/test/bin/loc.php symfony1/test/bin/loc.php
- 29,30d28
- < $root_dir.'/lib/plugins/sfPropelPlugin/test/unit',
- < $root_dir.'/lib/plugins/sfPropelPlugin/test/functional',
- Tylko w symfony/test/functional/fixtures/apps/cache: i18n
- Tylko w symfony/test/functional/fixtures/apps/cache/modules/cache: lib
- Tylko w symfony/test/functional/fixtures/apps/cache/modules/nocache: lib
- Tylko w symfony/test/functional/fixtures/apps/frontend: i18n
- Tylko w symfony/test/functional/fixtures/apps/i18n/modules/i18n: config
- Tylko w symfony/test/functional/fixtures: cache
- Tylko w symfony/test/functional/fixtures/config: propel.ini
- Tylko w symfony/test/functional/fixtures/data: sql
- Tylko w symfony/test/functional/fixtures: log
- Tylko w symfony/test/other/fixtures: propel
- Tylko w symfony/test/other/fixtures/task: aTask.class.php
- Tylko w symfony/test/other/fixtures/task: zTask.class.php
- diff -r symfony/test/unit/addon/sfPagerTest.php symfony1/test/unit/addon/sfPagerTest.php
- 43c43
- < $t->is($countRuns, $pager->count(), '->rewind will allow reiterating');
- ---
- > $t->is($countRuns, $pager->count(), '->rewind will allow reiterating');
- Tylko w symfony/test/unit/validator: sfValidatorSchemaForEachTest.php
- Tylko w symfony/test/unit/widget: sfWidgetFormSchemaForEachTest.php
- diff -r symfony/.travis.yml symfony1/.travis.yml
- 10c10
- < - hhvm
- ---
- > - 7.2
- 17d16
- < - php: hhvm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement