first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# default values
#all:

View File

@@ -0,0 +1,4 @@
default:
enabled: off
with_layout: false
lifetime: 86400

View File

@@ -0,0 +1,8 @@
<?php
// include project configuration
include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
// symfony bootstraping
require_once(dirname(__FILE__). DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'stCore.class.php');
stCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir);

View File

@@ -0,0 +1,74 @@
config/autoload.yml:
class: sfAutoloadConfigHandler
config/php.yml:
class: sfPhpConfigHandler
config/databases.yml:
class: sfDatabaseConfigHandler
config/settings.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_
config/app.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: app_
config/factories.yml:
class: sfFactoryConfigHandler
config/core_compile.yml:
class: sfCompileConfigHandler
config/bootstrap_compile.yml:
class: stCompileConfigHandler
config/filters.yml:
class: sfFilterConfigHandler
config/logging.yml:
class: sfLoggingConfigHandler
param:
prefix: sf_logging_
config/routing.yml:
class: sfRoutingConfigHandler
config/i18n.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_i18n_
apps/*/modules/*/config/generator.yml:
class: sfGeneratorConfigHandler
apps/*/modules/*/config/view.yml:
class: sfViewConfigHandler
apps/*/modules/*/config/mailer.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_mailer_
module: yes
modules/*/config/security.yml:
class: sfSecurityConfigHandler
apps/*/modules/*/config/security.yml:
class: sfSecurityConfigHandler
apps/*/modules/*/config/cache.yml:
class: sfCacheConfigHandler
apps/*/modules/*/validate/*.yml:
class: sfValidatorConfigHandler
apps/*/modules/*/config/module.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: mod_
module: yes

View File

@@ -0,0 +1,35 @@
cli:
controller:
class: sfConsoleController
request:
class: sfConsoleRequest
response:
class: sfConsoleResponse
test:
storage:
class: sfSessionTestStorage
all:
controller:
class: sfFrontWebController
#
request:
class: sfWebRequest
#
response:
class: sfWebResponse
#
user:
class: myUser
#
storage:
class: sfSessionStorage
param:
session_name: symfony
#
# view_cache:
# class: sfFileCache
# param:
# automaticCleaningFactor: 0
# cacheDir: %SF_TEMPLATE_CACHE_DIR%

View File

@@ -0,0 +1,10 @@
rendering: ~
web_debug: ~
security: ~
# generally, you will want to insert your own filters here
cache: ~
common: ~
flash: ~
execution: ~

View File

@@ -0,0 +1,7 @@
all:
default_culture: pl_PL
source: XLIFF
debug: off
cache: on
untranslated_prefix: "[T]"
untranslated_suffix: "[/T]"

View File

@@ -0,0 +1,22 @@
prod:
enabled: off
level: err
rotate: on
purge: off
#all:
# enabled: on
# level: debug
# rotate: off
# period: 7
# history: 10
# purge: on
# loggers:
# sf_web_debug:
# class: sfWebDebugLogger
# param:
# condition: %SF_WEB_DEBUG%
# sf_file_debug:
# class: sfFileLogger
# param:
# file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log

View File

@@ -0,0 +1,42 @@
homepage:
url: /
param: { module: stInstallerWeb, action: index }
installerweb:
url: /installerweb/:action/*
param: { module: stInstallerWeb, action: news }
devel:
url: /devel/:action/*
param: { module: stDevel, action: devel }
lock:
url: /lock/:action/*
param: { module: stLock, action: index }
webstore:
url: /webstore/:action/*
param: { module: stWebStore, action: index }
communication:
url: /communication/soap
param: { module: stCommunication, action: soap }
communication_check:
url: /communication/check
param: { module: stCommunication, action: check }
communication_check_version:
url: /communication/check_version
param: { module: stCommunication, action: checkVersion }
default_symfony:
url: /symfony/:action/*
param: { module: default }
default_index:
url: /:module
param: { action: index }
default:
url: /:module/:action/*

View File

@@ -0,0 +1,2 @@
default:
is_secure: off

View File

@@ -0,0 +1,117 @@
all:
.settings:
use_database: off
standard_helpers: [Partial, Cache, Form, I18N, Javascript, stProgressBar, stUpdate]
enabled_modules: [stProgressBar, default]
i18n: on
login_module: stAuth
login_action: index
use_security: on
.actions:
secure_module: stAuth
secure_action: index
error_404_module: stInstallerWeb
error_404_action: pageNotFound
prod:
.settings:
no_script_name: off
dev:
.settings:
error_reporting: <?php echo (E_ALL)."\n" ?>
web_debug: on
cache: off
no_script_name: off
etag: off
test:
.settings:
error_reporting: <?php echo (E_ALL)."\n" ?>
cache: off
web_debug: off
no_script_name: off
etag: off
#all:
# .actions:
# default_module: default # Default module and action to be called when
# default_action: index # A routing rule doesn't set it
#
# error_404_module: default # To be called when a 404 error is raised
# error_404_action: error404 # Or when the requested URL doesn't match any route
#
# login_module: default # To be called when a non-authenticated user
# login_action: login # Tries to access a secure page
#
# secure_module: stAuth # To be called when a user doesn't have
# secure_action: index # The credentials required for an action
#
# module_disabled_module: default # To be called when a user requests
# module_disabled_action: disabled # A module disabled in the module.yml
#
# unavailable_module: default # To be called when a user requests a page
# unavailable_action: unavailable # From an application disabled via the available setting below
#
# .settings:
# available: on # Enable the whole application. Switch to off to redirect all requests to the unavailable module and action.
#
# # Optional features. Deactivating unused features boots performance a bit.
# use_database: on # Enable database manager. Set to off if you don't use a database.
# use_flash: on # Enable flash parameter feature. Set to off if you never use the set_flash() method in actions.
# i18n: off # Enable interface translation. Set to off if your application should not be translated.
# check_symfony_version: off # Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade.
# use_process_cache: on # Enable symfony optimizations based on PHP accelerators. Set to off for tests or when you have enabled a PHP accelerator in your server but don't want symfony to use it internally.
# compressed: off # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler.
# check_lock: off # Enable the application lock system triggered by the clear-cache task. Set to on to have all requests redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page during the clear-cache process.
#
# # Output escaping settings
# escaping_strategy: bc # Determines how variables are made available to templates. Accepted values: bc, both, on, off. The value off deactivates escaping completely and gives a slight boost.
# escaping_method: ESC_ENTITIES # Function or helper used for escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS, ESC_JS_NO_ENTITIES.
#
# # Routing settings
# relative_url_root: # Default URL prefix. Use this when your symfony project is installed in a sub directory of the apache document root.
# suffix: . # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on.
# no_script_name: off # Enable the front controller name in generated URLs
#
# # Validation settings, used for error generation by the Validation helper
# validation_error_prefix: ' &darr;&nbsp;'
# validation_error_suffix: ' &nbsp;&darr;'
# validation_error_class: form_error
# validation_error_id_prefix: error_for_
#
# # Cache settings
# cache: off # Enable the template cache
# etag: on # Enable etag handling
#
# # Logging and debugging settings
# web_debug: off # Enable the web debug toolbar
# error_reporting: <?php echo (E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR)."\n" ?> # Determines which events are logged. The default value is E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR = 341
#
# # Assets paths
# rich_text_js_dir: js/tiny_mce
# prototype_web_dir: /sf/prototype
# admin_web_dir: /sf/sf_admin
# web_debug_web_dir: /sf/sf_web_debug
#
# # Helpers included in all templates by default
# standard_helpers: [Partial, Cache, Form]
#
# # Activated modules from plugins or from the symfony core
# enabled_modules: [default]
#
# # Charset used for the response
# charset: utf-8
#
# # Miscellaneous
# strip_comments: on # Remove comments in core framework classes as defined in the core_compile.yml
# autoloading_functions: ~ # Functions called when a class is requested and this it is not already loaded. Expects an array of callables. Used by the framework bridges.
# timeout: 1800 # Session timeout, in seconds
# max_forwards: 5
# path_info_array: SERVER
# path_info_key: PATH_INFO
# url_format: PATH
#
# # ORM
# orm: propel

View File

@@ -0,0 +1,155 @@
<?php
/**
* SOTESHOP/stUpdate
*
* This file is the part of stUpdate application. License: (Open License SOTE) Open License SOTE.
* Do not modify this file, system will overwrite it during upgrade.
*
* @package stUpdate
* @subpackage configs
* @copyright SOTE (www.sote.pl)
* @license http://www.sote.pl/license/open (Open License SOTE) Open License SOTE
* @version $Id: symfony.php 3160 2010-01-26 13:30:27Z marek $
*/
/**
* Pre-initialization script.
*
* @package symfony
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
* @author Sean Kerr <sean@code-box.org>
*/
$sf_symfony_lib_dir = sfConfig::get('sf_symfony_lib_dir');
if (!sfConfig::get('sf_in_bootstrap'))
{
// YAML support
require_once($sf_symfony_lib_dir.'/util/sfYaml.class.php');
// cache support
require_once($sf_symfony_lib_dir.'/cache/sfCache.class.php');
require_once($sf_symfony_lib_dir.'/cache/sfFileCache.class.php');
// config support
require_once($sf_symfony_lib_dir.'/config/sfConfigCache.class.php');
require_once($sf_symfony_lib_dir.'/config/sfConfigHandler.class.php');
require_once($sf_symfony_lib_dir.'/config/sfYamlConfigHandler.class.php');
require_once($sf_symfony_lib_dir.'/config/sfAutoloadConfigHandler.class.php');
require_once($sf_symfony_lib_dir.'/config/sfRootConfigHandler.class.php');
require_once($sf_symfony_lib_dir.'/config/sfLoader.class.php');
// basic exception classes
require_once($sf_symfony_lib_dir.'/exception/sfException.class.php');
require_once($sf_symfony_lib_dir.'/exception/sfAutoloadException.class.php');
require_once($sf_symfony_lib_dir.'/exception/sfCacheException.class.php');
require_once($sf_symfony_lib_dir.'/exception/sfConfigurationException.class.php');
require_once($sf_symfony_lib_dir.'/exception/sfParseException.class.php');
// utils
require_once($sf_symfony_lib_dir.'/util/sfParameterHolder.class.php');
}
else
{
require_once($sf_symfony_lib_dir.'/config/sfConfigCache.class.php');
}
// autoloading
sfCore::initAutoload();
try
{
$configCache = sfConfigCache::getInstance();
// force setting default timezone if not set
if (function_exists('date_default_timezone_get'))
{
if ($default_timezone = sfConfig::get('sf_default_timezone'))
{
date_default_timezone_set($default_timezone);
}
else if (sfConfig::get('sf_force_default_timezone', true))
{
date_default_timezone_set(@date_default_timezone_get());
}
}
// get config instance
$sf_app_config_dir_name = sfConfig::get('sf_app_config_dir_name');
$sf_debug = sfConfig::get('sf_debug');
// load timer classes if in debug mode
if ($sf_debug)
{
require_once($sf_symfony_lib_dir.'/debug/sfTimerManager.class.php');
require_once($sf_symfony_lib_dir.'/debug/sfTimer.class.php');
}
// load base settings
include($configCache->checkConfig($sf_app_config_dir_name.'/settings.yml'));
if (sfConfig::get('sf_logging_enabled', true))
{
include($configCache->checkConfig($sf_app_config_dir_name.'/logging.yml'));
}
if ($file = $configCache->checkConfig($sf_app_config_dir_name.'/app.yml', true))
{
include($file);
}
if (sfConfig::get('sf_i18n'))
{
include($configCache->checkConfig($sf_app_config_dir_name.'/i18n.yml'));
}
// add autoloading callables
foreach ((array) sfConfig::get('sf_autoloading_functions', array()) as $callable)
{
sfCore::addAutoloadCallable($callable);
}
// error settings
ini_set('display_errors', $sf_debug ? 'on' : 'off');
error_reporting(sfConfig::get('sf_error_reporting'));
// create bootstrap file for next time
if (!sfConfig::get('sf_in_bootstrap') && !$sf_debug && !sfConfig::get('sf_test'))
{
$configCache->checkConfig($sf_app_config_dir_name.'/bootstrap_compile.yml');
}
// required core classes for the framework
// create a temp var to avoid substitution during compilation
if (!$sf_debug && !sfConfig::get('sf_test'))
{
$core_classes = $sf_app_config_dir_name.'/core_compile.yml';
$configCache->import($core_classes, false);
}
$configCache->import($sf_app_config_dir_name.'/php.yml', false);
$configCache->import($sf_app_config_dir_name.'/routing.yml', false);
// compress output
ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : '');
}
catch (sfException $e)
{
$e->printStackTrace();
}
catch (Exception $e)
{
if (sfConfig::get('sf_test'))
{
throw $e;
}
try
{
// wrap non symfony exceptions
$sfException = new sfException();
$sfException->printStackTrace($e);
}
catch (Exception $e)
{
header('HTTP/1.0 500 Internal Server Error');
}
}

View File

@@ -0,0 +1,18 @@
default:
http_metas:
content-type: text/html
metas:
title: SOTESHOP - panel aktualizacji
robots: index, follow
description: symfony project
keywords: symfony, project
language: en
stylesheets: []
javascripts: []
has_layout: on
layout: layout