Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE - REFERENCE - branch:omg-8.3 #1

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@
path = lib/vendor/swiftmailer
url = https://github.com/FriendsOfSymfony1/swiftmailer.git
branch = 5.x
[submodule "lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine"]
path = lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine
url = https://github.com/FriendsOfSymfony1/doctrine1.git
4 changes: 3 additions & 1 deletion lib/action/sfAction.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ public function renderText($text)
*/
public function renderJson($data)
{
$this->getResponse()->setContentType('application/json');
$this->getResponse()->setHttpHeader('Cache-Control', 'no-cache, must-revalidate');
$this->getResponse()->setHttpHeader('Expires', '0');
$this->getResponse()->setHttpHeader('Content-Type', 'application/json; charset=utf-8');
$this->getResponse()->setContent(json_encode($data));

return sfView::NONE;
Expand Down
2 changes: 1 addition & 1 deletion lib/command/sfFormatter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function format($text = '', $parameters = [])
*/
public function formatSection($section, $text, $size = null)
{
if (!$size) {
if (!$size || !is_int($size)) {
$size = $this->size;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/config/sfApplicationConfiguration.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function setRootDir($rootDir)
'sf_app' => $this->getApplication(),
'sf_environment' => $this->getEnvironment(),
'sf_debug' => $this->isDebug(),
'sf_cli' => PHP_SAPI === 'cli',
'sf_cli' => 0 === strncasecmp(PHP_SAPI, 'cli', 3) && 'cli-server' !== PHP_SAPI,
]);

$this->setAppDir(sfConfig::get('sf_apps_dir').DIRECTORY_SEPARATOR.$this->getApplication());
Expand Down
5 changes: 0 additions & 5 deletions lib/exception/sfError404Exception.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ public function printStackTrace()
return parent::printStackTrace();
}

// log all exceptions in php log
if (!sfConfig::get('sf_test')) {
error_log($this->getMessage());
}

sfContext::getInstance()->getController()->forward(sfConfig::get('sf_error_404_module'), sfConfig::get('sf_error_404_action'));
}
}
7 changes: 0 additions & 7 deletions lib/plugins/sfDoctrinePlugin/LICENSE

This file was deleted.

6 changes: 0 additions & 6 deletions lib/plugins/sfDoctrinePlugin/config/autoload.yml

This file was deleted.

5 changes: 0 additions & 5 deletions lib/plugins/sfDoctrinePlugin/config/installer.php

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions lib/plugins/sfDoctrinePlugin/config/skeleton/config/databases.yml

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

Loading
Loading