initial commit

This commit is contained in:
Chris Sewell
2012-11-28 03:55:08 -05:00
parent 7adb399b2e
commit cf140a2e97
3247 changed files with 492437 additions and 0 deletions

View File

@ -0,0 +1,59 @@
autoload:
# symfony core
symfony:
name: symfony
path: %SF_SYMFONY_LIB_DIR%
recursive: on
exclude: [vendor]
propel:
name: propel
path: %SF_SYMFONY_LIB_DIR%/vendor/propel
recursive: on
creole:
name: creole
path: %SF_SYMFONY_LIB_DIR%/vendor/creole
recursive: on
propel_addon:
name: propel addon
files:
Propel: %SF_SYMFONY_LIB_DIR%/addon/propel/sfPropelAutoload.php
# plugins
plugins_lib:
name: plugins lib
path: %SF_PLUGINS_DIR%/*/lib
recursive: on
plugins_module_lib:
name: plugins module lib
path: %SF_PLUGINS_DIR%/*/modules/*/lib
prefix: 2
recursive: on
# project
project:
name: project
path: %SF_LIB_DIR%
recursive: on
exclude: [model, symfony]
project_model:
name: project model
path: %SF_MODEL_LIB_DIR%
recursive: on
# application
application:
name: application
path: %SF_APP_LIB_DIR%
recursive: on
modules:
name: module
path: %SF_APP_DIR%/modules/*/lib
prefix: 1
recursive: on

View File

@ -0,0 +1 @@
- %SF_SYMFONY_LIB_DIR%/symfony.php

View File

@ -0,0 +1,70 @@
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/bootstrap_compile.yml:
class: sfCompileConfigHandler
config/core_compile.yml:
class: sfCompileConfigHandler
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_
modules/*/config/generator.yml:
class: sfGeneratorConfigHandler
modules/*/config/view.yml:
class: sfViewConfigHandler
modules/*/config/mailer.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: sf_mailer_
module: yes
modules/*/config/security.yml:
class: sfSecurityConfigHandler
modules/*/config/cache.yml:
class: sfCacheConfigHandler
modules/*/validate/*.yml:
class: sfValidatorConfigHandler
modules/*/config/module.yml:
class: sfDefineEnvironmentConfigHandler
param:
prefix: mod_
module: yes

View File

@ -0,0 +1,81 @@
<?php
// for tracking temporary variables
$usedVars = array_keys(get_defined_vars());
$sf_root_dir = sfConfig::get('sf_root_dir');
$sf_app = sfConfig::get('sf_app');
$sf_environment = sfConfig::get('sf_environment');
sfConfig::add(array(
// root directory names
'sf_bin_dir_name' => $sf_bin_dir_name = 'batch',
'sf_cache_dir_name' => $sf_cache_dir_name = 'cache',
'sf_log_dir_name' => $sf_log_dir_name = 'log',
'sf_lib_dir_name' => $sf_lib_dir_name = 'lib',
'sf_web_dir_name' => $sf_web_dir_name = 'web',
'sf_upload_dir_name' => $sf_upload_dir_name = 'uploads',
'sf_data_dir_name' => $sf_data_dir_name = 'data',
'sf_config_dir_name' => $sf_config_dir_name = 'config',
'sf_apps_dir_name' => $sf_apps_dir_name = 'apps',
'sf_test_dir_name' => $sf_test_dir_name = 'test',
'sf_doc_dir_name' => $sf_doc_dir_name = 'doc',
'sf_plugins_dir_name' => $sf_plugins_dir_name = 'plugins',
// global directory structure
'sf_app_dir' => $sf_app_dir = $sf_root_dir.DIRECTORY_SEPARATOR.$sf_apps_dir_name.DIRECTORY_SEPARATOR.$sf_app,
'sf_lib_dir' => $sf_lib_dir = $sf_root_dir.DIRECTORY_SEPARATOR.$sf_lib_dir_name,
'sf_bin_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_bin_dir_name,
'sf_web_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_web_dir_name,
'sf_upload_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_web_dir_name.DIRECTORY_SEPARATOR.$sf_upload_dir_name,
'sf_root_cache_dir' => $sf_root_cache_dir = $sf_root_dir.DIRECTORY_SEPARATOR.$sf_cache_dir_name,
'sf_base_cache_dir' => $sf_base_cache_dir = $sf_root_cache_dir.DIRECTORY_SEPARATOR.$sf_app,
'sf_cache_dir' => $sf_cache_dir = $sf_base_cache_dir.DIRECTORY_SEPARATOR.$sf_environment,
'sf_log_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_log_dir_name,
'sf_data_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_data_dir_name,
'sf_config_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_config_dir_name,
'sf_test_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_test_dir_name,
'sf_doc_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.$sf_doc_dir_name,
'sf_plugins_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_plugins_dir_name,
// lib directory names
'sf_model_dir_name' => $sf_model_dir_name = 'model',
// lib directory structure
'sf_model_lib_dir' => $sf_lib_dir.DIRECTORY_SEPARATOR.$sf_model_dir_name,
// SF_CACHE_DIR directory structure
'sf_template_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'template',
'sf_i18n_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'i18n',
'sf_config_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.$sf_config_dir_name,
'sf_test_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'test',
'sf_module_cache_dir' => $sf_cache_dir.DIRECTORY_SEPARATOR.'modules',
// SF_APP_DIR sub-directories names
'sf_app_i18n_dir_name' => $sf_app_i18n_dir_name = 'i18n',
'sf_app_config_dir_name' => $sf_app_config_dir_name = 'config',
'sf_app_lib_dir_name' => $sf_app_lib_dir_name = 'lib',
'sf_app_module_dir_name' => $sf_app_module_dir_name = 'modules',
'sf_app_template_dir_name' => $sf_app_template_dir_name = 'templates',
// SF_APP_DIR directory structure
'sf_app_config_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_config_dir_name,
'sf_app_lib_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_lib_dir_name,
'sf_app_module_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_module_dir_name,
'sf_app_template_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_template_dir_name,
'sf_app_i18n_dir' => $sf_app_dir.DIRECTORY_SEPARATOR.$sf_app_i18n_dir_name,
// SF_APP_MODULE_DIR sub-directories names
'sf_app_module_action_dir_name' => 'actions',
'sf_app_module_template_dir_name' => 'templates',
'sf_app_module_lib_dir_name' => 'lib',
'sf_app_module_view_dir_name' => 'views',
'sf_app_module_validate_dir_name' => 'validate',
'sf_app_module_config_dir_name' => 'config',
'sf_app_module_i18n_dir_name' => 'i18n',
));
// Remove temporary variables
foreach (array_diff(array_keys(get_defined_vars()), $usedVars) as $var) {
unset($$var);
}

View File

@ -0,0 +1,37 @@
- %SF_SYMFONY_LIB_DIR%/action/sfComponent.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfAction.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfActions.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfActionStack.class.php
- %SF_SYMFONY_LIB_DIR%/action/sfActionStackEntry.class.php
#- %SF_SYMFONY_LIB_DIR%/config/sfLoader.class.php
- %SF_SYMFONY_LIB_DIR%/controller/sfController.class.php
- %SF_SYMFONY_LIB_DIR%/database/sfDatabaseManager.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfCommonFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfExecutionFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfRenderingFilter.class.php
- %SF_SYMFONY_LIB_DIR%/filter/sfFilterChain.class.php
- %SF_SYMFONY_LIB_DIR%/request/sfRequest.class.php
- %SF_SYMFONY_LIB_DIR%/response/sfResponse.class.php
- %SF_SYMFONY_LIB_DIR%/storage/sfStorage.class.php
- %SF_SYMFONY_LIB_DIR%/user/sfUser.class.php
- %SF_SYMFONY_LIB_DIR%/util/sfContext.class.php
- %SF_SYMFONY_LIB_DIR%/validator/sfValidatorManager.class.php
#- %SF_SYMFONY_LIB_DIR%/util/sfParameterHolder.class.php
- %SF_SYMFONY_LIB_DIR%/view/sfView.class.php
# these classes are optionals but very likely to be used (in web context)
#- %SF_SYMFONY_LIB_DIR%/controller/sfRouting.class.php
- %SF_SYMFONY_LIB_DIR%/controller/sfWebController.class.php
- %SF_SYMFONY_LIB_DIR%/controller/sfFrontWebController.class.php
- %SF_SYMFONY_LIB_DIR%/request/sfWebRequest.class.php
- %SF_SYMFONY_LIB_DIR%/response/sfWebResponse.class.php
- %SF_SYMFONY_LIB_DIR%/storage/sfSessionStorage.class.php
- %SF_SYMFONY_LIB_DIR%/view/sfPHPView.class.php
# output escaper
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaper.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperArrayDecorator.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperGetterDecorator.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperIteratorDecorator.class.php
- %SF_SYMFONY_LIB_DIR%/view/escaper/sfOutputEscaperObjectDecorator.class.php

View File

@ -0,0 +1,23 @@
default:
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%

38
data/symfony/config/filters.yml Executable file
View File

@ -0,0 +1,38 @@
# rendering filter must be the first registered filter
rendering:
class: sfRenderingFilter
param:
type: rendering
web_debug:
class: sfWebDebugFilter
param:
condition: %SF_WEB_DEBUG%
# security filter must have a type of security
security:
class: sfBasicSecurityFilter
param:
type: security
condition: %SF_USE_SECURITY%
# generally, you will want to insert your own filters here
cache:
class: sfCacheFilter
param:
condition: %SF_CACHE%
common:
class: sfCommonFilter
flash:
class: sfFlashFilter
param:
condition: %SF_USE_FLASH%
# execution filter must be the last registered filter
execution:
class: sfExecutionFilter
param:
type: execution

View File

7
data/symfony/config/i18n.yml Executable file
View File

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

16
data/symfony/config/logging.yml Executable file
View File

@ -0,0 +1,16 @@
default:
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

16
data/symfony/config/mailer.yml Executable file
View File

@ -0,0 +1,16 @@
default:
deliver: on
mailer: smtp
domain: localhost.localdomain
hostname: localhost
port: 25
username: ''
password: ''
wordwrap: 80
.headers:
priority: 3
content_type: text/plain
charset: utf-8
encoding: 8bit

4
data/symfony/config/module.yml Executable file
View File

@ -0,0 +1,4 @@
default:
enabled: on
view_class: sfPHP
is_internal: off

14
data/symfony/config/php.yml Executable file
View File

@ -0,0 +1,14 @@
set:
magic_quotes_runtime: off
log_errors: on
arg_separator.output: |
&amp;
#check:
# zend.ze1_compatibility_mode: off
warn:
magic_quotes_gpc: off
register_globals: off
session.auto_start: off

View File

View File

@ -0,0 +1,82 @@
default:
.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: default # To be called when a user doesn't have
secure_action: secure # 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_security: on # Enable security features (login and credentials). Set to off for public applications.
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 and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page.
# 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
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: 341 # 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
calendar_web_dir: /js/calendar
# 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: 999999999 # Session timeout, in seconds
max_forwards: 5
path_info_array: SERVER
path_info_key: PATH_INFO
url_format: PATH
# ORM
orm: propel

1
data/symfony/config/view.yml Executable file
View File

@ -0,0 +1 @@
default: