- sfCommandApplication.class.php
- abstract class sfCommandApplication
- {
- protected
- $commandManager = null,
- $trace = false,
- $verbose = true,
- $nowrite = false,
- $name = 'UNKNOWN',
- $version = 'UNKNOWN',
- $tasks = array(),
- $currentTask = null,
- $dispatcher = null,
- $options = array(),
- $formatter = null;
-
- public function __construct(sfEventDispatcher $dispatcher, sfFormatter $formatter = null, $options = array())
- {
- $this->dispatcher = $dispatcher;
- $this->formatter = null === $formatter ? $this->guessBestFormatter(STDOUT) : $formatter;
- $this->options = $options;
- $this->fixCgi();
- $argumentSet = new sfCommandArgumentSet(array(
- new sfCommandArgument('task', sfCommandArgument::REQUIRED, 'The task to execute'),
- ));
- $optionSet = new sfCommandOptionSet(array(
- new sfCommandOption('--help', '-H', sfCommandOption::PARAMETER_NONE, 'Display this help message.'),
- new sfCommandOption('--quiet', '-q', sfCommandOption::PARAMETER_NONE, 'Do not log messages to standard output.'),
- new sfCommandOption('--trace', '-t', sfCommandOption::PARAMETER_NONE, 'Turn on invoke/execute tracing, enable full backtrace.'),
- new sfCommandOption('--version', '-V', sfCommandOption::PARAMETER_NONE, 'Display the program version.'),
- new sfCommandOption('--color', '', sfCommandOption::PARAMETER_NONE, 'Forces ANSI color output.'),
- ));
- $this->commandManager = new sfCommandManager($argumentSet, $optionSet);
- $this->configure();
- $this->registerTasks();
- }
-
- abstract public function configure();
-
- public function getOption($name)
- {
- return isset($this->options[$name]) ? $this->options[$name] : null;
- }
-
- public function getFormatter()
- {
- return $this->formatter;
- }
-
- public function setFormatter(sfFormatter $formatter)
- {
- $this->formatter = $formatter;
- foreach ($this->getTasks() as $task)
- {
- $task->setFormatter($formatter);
- }
- }
- public function clearTasks()
- {
- $this->tasks = array();
- }
-
- public function registerTasks($tasks = null)
- {
- if (null === $tasks)
- {
- $tasks = $this->autodiscoverTasks();
- }
- foreach ($tasks as $task)
- {
- $this->registerTask($task);
- }
- }
-
- public function registerTask(sfTask $task)
- {
- if (isset($this->tasks[$task->getFullName()]))
- {
- throw new sfCommandException(sprintf('The task named "%s" in "%s" task is already registered by the "%s" task.', $task->getFullName(), get_class($task), get_class($this->tasks[$task->getFullName()])));
- }
- $this->tasks[$task->getFullName()] = $task;
- foreach ($task->getAliases() as $alias)
- {
- if (isset($this->tasks[$alias]))
- {
- throw new sfCommandException(sprintf('A task named "%s" is already registered.', $alias));
- }
- $this->tasks[$alias] = $task;
- }
- }
-
- public function autodiscoverTasks()
- {
- $tasks = array();
- foreach (get_declared_classes() as $class)
- {
- $r = new ReflectionClass($class);
- if ($r->isSubclassOf('sfTask') && !$r->isAbstract())
- {
- $tasks[] = new $class($this->dispatcher, $this->formatter);
- }
- }
- return $tasks;
- }
-
- public function getTasks()
- {
- return $this->tasks;
- }
-
- public function getTask($name)
- {
- if (!isset($this->tasks[$name]))
- {
- throw new sfCommandException(sprintf('The task "%s" does not exist.', $name));
- }
- return $this->tasks[$name];
- }
-
- public function run($options = null)
- {
- $this->handleOptions($options);
- $arguments = $this->commandManager->getArgumentValues();
- $this->currentTask = $this->getTaskToExecute($arguments['task']);
- $ret = $this->currentTask->runFromCLI($this->commandManager, $this->commandOptions);
- $this->currentTask = null;
- return $ret;
- }
-
- public function getName()
- {
- return $this->name;
- }
-
- public function setName($name)
- {
- $this->name = $name;
- }
-
- public function getVersion()
- {
- return $this->version;
- }
-
- public function setVersion($version)
- {
- $this->version = $version;
- }
-
- public function getLongVersion()
- {
- return sprintf('%s version %s', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'))."\n";
- }
-
- public function isVerbose()
- {
- return $this->verbose;
- }
-
- public function withTrace()
- {
- return $this->trace;
- }
-
- public function help()
- {
- $messages = array(
- $this->formatter->format('Usage:', 'COMMENT'),
- sprintf(" %s [options] task_name [arguments]\n", $this->getName()),
- $this->formatter->format('Options:', 'COMMENT'),
- );
- foreach ($this->commandManager->getOptionSet()->getOptions() as $option)
- {
- $messages[] = sprintf(' %-24s %s %s',
- $this->formatter->format('--'.$option->getName(), 'INFO'),
- $option->getShortcut() ? $this->formatter->format('-'.$option->getShortcut(), 'INFO') : ' ',
- $option->getHelp()
- );
- }
- $this->dispatcher->notify(new sfEvent($this, 'command.log', $messages));
- }
-
- protected function handleOptions($options = null)
- {
- $this->commandManager->process($options);
- $this->commandOptions = $options;
-
- if ($this->commandManager->getOptionSet()->hasOption('color') && false !== $this->commandManager->getOptionValue('color'))
- {
- $this->setFormatter(new sfAnsiColorFormatter());
- }
- if ($this->commandManager->getOptionSet()->hasOption('quiet') && false !== $this->commandManager->getOptionValue('quiet'))
- {
- $this->verbose = false;
- }
- if ($this->commandManager->getOptionSet()->hasOption('trace') && false !== $this->commandManager->getOptionValue('trace'))
- {
- $this->verbose = true;
- $this->trace = true;
- }
- if ($this->commandManager->getOptionSet()->hasOption('help') && false !== $this->commandManager->getOptionValue('help'))
- {
- $this->help();
- exit(0);
- }
- if ($this->commandManager->getOptionSet()->hasOption('version') && false !== $this->commandManager->getOptionValue('version'))
- {
- echo $this->getLongVersion();
- exit(0);
- }
- }
-
- public function renderException($e)
- {
- $title = sprintf(' [%s] ', get_class($e));
- $len = $this->strlen($title);
- $lines = array();
- foreach (explode("\n", $e->getMessage()) as $line)
- {
- $lines[] = sprintf(' %s ', $line);
- $len = max($this->strlen($line) + 4, $len);
- }
- $messages = array(str_repeat(' ', $len));
- if ($this->trace)
- {
- $messages[] = $title.str_repeat(' ', $len - $this->strlen($title));
- }
- foreach ($lines as $line)
- {
- $messages[] = $line.str_repeat(' ', $len - $this->strlen($line));
- }
- $messages[] = str_repeat(' ', $len);
- fwrite(STDERR, "\n");
- foreach ($messages as $message)
- {
- fwrite(STDERR, $this->formatter->format($message, 'ERROR', STDERR)."\n");
- }
- fwrite(STDERR, "\n");
- if (null !== $this->currentTask && $e instanceof sfCommandArgumentsException)
- {
- fwrite(STDERR, $this->formatter->format(sprintf($this->currentTask->getSynopsis(), $this->getName()), 'INFO', STDERR)."\n");
- fwrite(STDERR, "\n");
- }
- if ($this->trace)
- {
- fwrite(STDERR, $this->formatter->format("Exception trace:\n", 'COMMENT'));
-
- $trace = $e->getTrace();
- array_unshift($trace, array(
- 'function' => '',
- 'file' => $e->getFile() != null ? $e->getFile() : 'n/a',
- 'line' => $e->getLine() != null ? $e->getLine() : 'n/a',
- 'args' => array(),
- ));
- for ($i = 0, $count = count($trace); $i < $count; $i++)
- {
- $class = isset($trace[$i]['class']) ? $trace[$i]['class'] : '';
- $type = isset($trace[$i]['type']) ? $trace[$i]['type'] : '';
- $function = $trace[$i]['function'];
- $file = isset($trace[$i]['file']) ? $trace[$i]['file'] : 'n/a';
- $line = isset($trace[$i]['line']) ? $trace[$i]['line'] : 'n/a';
- fwrite(STDERR, sprintf(" %s%s%s at %s:%s\n", $class, $type, $function, $this->formatter->format($file, 'INFO', STDERR), $this->formatter->format($line, 'INFO', STDERR)));
- }
- fwrite(STDERR, "\n");
- }
- }
-
- public function getTaskToExecute($name)
- {
-
- if (false !== $pos = strpos($name, ':'))
- {
- $namespace = substr($name, 0, $pos);
- $name = substr($name, $pos + 1);
- $namespaces = array();
- foreach ($this->tasks as $task)
- {
- if ($task->getNamespace() && !in_array($task->getNamespace(), $namespaces))
- {
- $namespaces[] = $task->getNamespace();
- }
- }
- $abbrev = $this->getAbbreviations($namespaces);
- if (!isset($abbrev[$namespace]))
- {
- throw new sfCommandException(sprintf('There are no tasks defined in the "%s" namespace.', $namespace));
- }
- else if (count($abbrev[$namespace]) > 1)
- {
- throw new sfCommandException(sprintf('The namespace "%s" is ambiguous (%s).', $namespace, implode(', ', $abbrev[$namespace])));
- }
- else
- {
- $namespace = $abbrev[$namespace][0];
- }
- }
- else
- {
- $namespace = '';
- }
-
- $tasks = array();
- foreach ($this->tasks as $taskName => $task)
- {
- if ($taskName == $task->getFullName() && $task->getNamespace() == $namespace)
- {
- $tasks[] = $task->getName();
- }
- }
- $abbrev = $this->getAbbreviations($tasks);
- if (isset($abbrev[$name]) && count($abbrev[$name]) == 1)
- {
- return $this->getTask($namespace ? $namespace.':'.$abbrev[$name][0] : $abbrev[$name][0]);
- }
-
- $aliases = array();
- foreach ($this->tasks as $taskName => $task)
- {
- if ($taskName == $task->getFullName())
- {
- foreach ($task->getAliases() as $alias)
- {
- $aliases[] = $alias;
- }
- }
- }
- $abbrev = $this->getAbbreviations($aliases);
- $fullName = $namespace ? $namespace.':'.$name : $name;
- if (!isset($abbrev[$fullName]))
- {
- throw new sfCommandException(sprintf('Task "%s" is not defined.', $fullName));
- }
- else if (count($abbrev[$fullName]) > 1)
- {
- throw new sfCommandException(sprintf('Task "%s" is ambiguous (%s).', $fullName, implode(', ', $abbrev[$fullName])));
- }
- else
- {
- return $this->getTask($abbrev[$fullName][0]);
- }
- }
- protected function strlen($string)
- {
- return function_exists('mb_strlen') ? mb_strlen($string) : strlen($string);
- }
-
- protected function fixCgi()
- {
-
- @ob_end_flush();
- ob_implicit_flush(true);
-
- set_time_limit(0);
- ini_set('track_errors', true);
- ini_set('html_errors', false);
- ini_set('magic_quotes_runtime', false);
- if (false === strpos(PHP_SAPI, 'cgi'))
- {
- return;
- }
-
- define('STDIN', fopen('php://stdin', 'r'));
- define('STDOUT', fopen('php://stdout', 'w'));
- define('STDERR', fopen('php://stderr', 'w'));
-
- if (isset($_SERVER['PWD']))
- {
- chdir($_SERVER['PWD']);
- }
-
- register_shutdown_function(create_function('', 'fclose(STDIN); fclose(STDOUT); fclose(STDERR); return true;'));
- }
-
- protected function getAbbreviations($names)
- {
- $abbrevs = array();
- $table = array();
- foreach ($names as $name)
- {
- for ($len = strlen($name) - 1; $len > 0; --$len)
- {
- $abbrev = substr($name, 0, $len);
- if (!array_key_exists($abbrev, $table))
- {
- $table[$abbrev] = 1;
- }
- else
- {
- ++$table[$abbrev];
- }
- $seen = $table[$abbrev];
- if ($seen == 1)
- {
-
- $abbrevs[$abbrev] = array($name);
- }
- else if ($seen == 2)
- {
-
-
- $abbrevs[$abbrev][] = $name;
- }
- else
- {
-
- continue;
- }
- }
- }
-
- foreach ($names as $name)
- {
- $abbrevs[$name] = array($name);
- }
- return $abbrevs;
- }
-
- protected function isStreamSupportsColors($stream)
- {
- if (DIRECTORY_SEPARATOR == '\\')
- {
- return false !== getenv('ANSICON');
- }
- else
- {
- return function_exists('posix_isatty') && @posix_isatty($stream);
- }
- }
-
- protected function guessBestFormatter($stream)
- {
- return $this->isStreamSupportsColors($stream) ? new sfAnsiColorFormatter() : new sfFormatter();
- }
- }
Configuration
- debug
- xdebug
- logging
- cache
- compression
- tokenizer
- eaccelerator
- apc
- xcache
Request 
options:
path_info_key: PATH_INFO
path_info_array: SERVER
default_format: null
logging: '1'
relative_url_root: null
formats: { txt: text/plain, js: [application/javascript, application/x-javascript, text/javascript], css: text/css, json: [application/json, application/x-json], xml: [text/xml, application/xml, application/x-xml], rdf: application/rdf+xml, atom: application/atom+xml }
no_script_name: false
parameterHolder:
action: index
class: sfCommandApplication
method: ''
module: sfCodeView
attributeHolder:
sf_route: 'sfRoute Object()'
Response 
status:
code: 200
text: OK
options:
http_protocol: HTTP/1.1
logging: '1'
charset: utf-8
send_http_headers: false
content_type: 'text/html; charset=utf-8'
cookies: { }
httpHeaders:
Content-Type: 'text/html; charset=utf-8'
javascripts:
'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js': { }
/sfCodeViewPlugin/js/sfCodeViewPlugin.js: { }
stylesheets:
main.css: { }
/sfCodeViewPlugin/css/sfCodeViewPlugin.css: { }
metas: { }
httpMetas:
Content-Type: 'text/html; charset=utf-8'
User 
options:
auto_shutdown: false
culture: null
default_culture: en
use_flash: true
logging: '1'
timeout: 1800
attributeHolder:
symfony/user/sfUser/attributes: { history: [sfCommandApplication, sfCodeViewer, sfCodeViewPluginConfiguration, sfCodeViewActions, sfClassManipulator, sfChoiceFormat, sfCallable, sfCacheSessionStorage, sfCacheFilter, sfCacheException] }
culture: en
Settings 
app_sfCodeViewPlugin_javascripts:
- /sfCodeViewPlugin/js/sfCodeViewPlugin.js
app_sfCodeViewPlugin_stylesheets:
- /sfCodeViewPlugin/css/sfCodeViewPlugin.css
mod_sfcodeview_enabled: true
mod_sfcodeview_view_class: sfPHP
sf_admin_module_web_dir: /sfDoctrinePlugin
sf_admin_web_dir: /sf/sf_admin
sf_app: frontend
sf_app_base_cache_dir: /www/redotheoffice/codeview/cache/frontend
sf_app_cache_dir: /www/redotheoffice/codeview/cache/frontend/dev
sf_app_config_dir: /www/redotheoffice/codeview/apps/frontend/config
sf_app_dir: /www/redotheoffice/codeview/apps/frontend
sf_app_i18n_dir: /www/redotheoffice/codeview/apps/frontend/i18n
sf_app_lib_dir: /www/redotheoffice/codeview/apps/frontend/lib
sf_app_module_dir: /www/redotheoffice/codeview/apps/frontend/modules
sf_app_template_dir: /www/redotheoffice/codeview/apps/frontend/templates
sf_apps_dir: /www/redotheoffice/codeview/apps
sf_cache: false
sf_cache_dir: /www/redotheoffice/codeview/cache
sf_charset: utf-8
sf_check_lock: false
sf_compressed: false
sf_config_cache_dir: /www/redotheoffice/codeview/cache/frontend/dev/config
sf_config_dir: /www/redotheoffice/codeview/config
sf_csrf_secret: 220ab365e581d678efc07c41371dbc49a1fdcec3
sf_data_dir: /www/redotheoffice/codeview/data
sf_debug: true
sf_default_culture: en
sf_enabled_modules:
- default
- sfCodeView
sf_environment: dev
sf_error_404_action: error404
sf_error_404_module: default
sf_error_reporting: 8191
sf_escaping_method: ESC_SPECIALCHARS
sf_escaping_strategy: true
sf_etag: false
sf_file_link_format: null
sf_i18n: false
sf_i18n_cache_dir: /www/redotheoffice/codeview/cache/frontend/dev/i18n
sf_lib_dir: /www/redotheoffice/codeview/lib
sf_log_dir: /www/redotheoffice/codeview/log
sf_logging_enabled: true
sf_login_action: login
sf_login_module: default
sf_module_cache_dir: /www/redotheoffice/codeview/cache/frontend/dev/modules
sf_module_disabled_action: disabled
sf_module_disabled_module: default
sf_no_script_name: false
sf_orm: doctrine
sf_plugins_dir: /www/redotheoffice/codeview/plugins
sf_root_dir: /www/redotheoffice/codeview
sf_secure_action: secure
sf_secure_module: default
sf_standard_helpers:
- Partial
- Cache
sf_symfony_lib_dir: /www/redotheoffice/lib/symfony/1.4/lib
sf_template_cache_dir: /www/redotheoffice/codeview/cache/frontend/dev/template
sf_test_cache_dir: /www/redotheoffice/codeview/cache/frontend/dev/test
sf_test_dir: /www/redotheoffice/codeview/test
sf_upload_dir: /www/redotheoffice/codeview/web/uploads
sf_use_database: true
sf_web_debug: true
sf_web_debug_web_dir: /sf/sf_web_debug
sf_web_dir: /www/redotheoffice/codeview/web
symfony.asset.javascripts_included: true
symfony.asset.stylesheets_included: true
Globals 
cookie:
symfony: igbg1vov0kr106fi7q336aqd75
env: { }
files: { }
get: { }
post: { }
server:
DOCUMENT_ROOT: /Library/WebServer/Documents
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: 'en-us,en;q=0.5'
HTTP_CACHE_CONTROL: no-cache
HTTP_CONNECTION: close
HTTP_COOKIE: symfony=igbg1vov0kr106fi7q336aqd75
HTTP_HOST: codeview.redotheoffice.com
HTTP_PRAGMA: no-cache
HTTP_USER_AGENT: 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)'
HTTP_X_CC_ID: ccc04-02
PATH: '/usr/bin:/bin:/usr/sbin:/sbin'
PATH_INFO: /sfCodeView/sfCommandApplication
PATH_TRANSLATED: 'redirect:/www/redotheoffice/codeview/web/index.php/sfCommandApplication'
PHP_SELF: /index.php/sfCodeView/sfCommandApplication
QUERY_STRING: ''
REMOTE_ADDR: 38.107.179.243
REMOTE_PORT: '47850'
REQUEST_METHOD: GET
REQUEST_TIME: 1337453357
REQUEST_URI: /index.php/sfCodeView/sfCommandApplication
SCRIPT_FILENAME: /www/redotheoffice/codeview/web/index.php
SCRIPT_NAME: /index.php
SERVER_ADDR: 192.168.0.108
SERVER_ADMIN: webmaster@weett.nl
SERVER_NAME: codeview.redotheoffice.com
SERVER_PORT: '80'
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE: ''
SERVER_SOFTWARE: 'Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6'
session:
symfony/user/sfUser/attributes: { symfony/user/sfUser/attributes: { history: [sfCodeViewer, sfCodeViewPluginConfiguration, sfCodeViewActions, sfClassManipulator, sfChoiceFormat, sfCallable, sfCacheSessionStorage, sfCacheFilter, sfCacheException, sfCacheConfigHandler] } }
symfony/user/sfUser/authenticated: false
symfony/user/sfUser/credentials: { }
symfony/user/sfUser/culture: en
symfony/user/sfUser/lastRequest: 1337453328
Php 
php: 5.3.6
os: 'Darwin Mac-mini-van-Sjoerd-de-Jong.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386'
extensions:
54: apache2handler
33: 'apc (3.1.7)'
8: bcmath
9: bz2
10: calendar
0: 'Core (5.3.6)'
11: ctype
56: curl
1: 'date (5.3.6)'
12: 'dom (20031129)'
2: ereg
42: 'exif (1.4 $Id: exif.c 308362 2011-02-15 14:02:26Z pajoye $)'
14: 'fileinfo (1.0.5-dev)'
15: 'filter (0.11.0)'
16: ftp
17: gd
18: gettext
13: 'hash (1.0)'
20: iconv
36: imap
57: 'intl (1.1.0)'
22: 'json (1.2.1)'
23: ldap
3: libxml
24: mbstring
58: mcrypt
59: 'memcache (3.0.4)'
60: 'memcached (1.0.1)'
71: mhash
61: 'mongo (1.1.4)'
62: mssql
29: 'mysql (1.0)'
27: 'mysqli (0.1)'
26: 'mysqlnd (mysqlnd 5.0.8-dev - 20102224 - $Revision: 308673 $)'
63: 'OAuth (1.0-dev)'
28: 'odbc (1.0)'
4: openssl
5: pcre
30: 'PDO (1.0.4dev)'
64: 'pdo_dblib (1.0.1)'
31: 'pdo_mysql (1.0.2)'
65: 'pdo_pgsql (1.0.2)'
32: 'pdo_sqlite (1.0.1)'
66: pgsql
55: 'Phar (2.0.1)'
34: posix
35: 'Reflection ($Revision: 307971 $)'
21: session
37: shmop
38: 'SimpleXML (0.1)'
39: soap
40: sockets
67: 'solr (0.9.11)'
19: 'SPL (0.2)'
41: 'SQLite (2.0-dev)'
6: 'sqlite3 (0.7-dev)'
25: 'standard (5.3.6)'
43: sysvmsg
44: sysvsem
45: sysvshm
46: 'tidy (2.0)'
47: 'tokenizer (0.1)'
68: 'uploadprogress (1.0.1)'
48: wddx
72: 'xdebug (2.2.0-dev)'
69: 'xhprof (0.9.2)'
49: xml
50: 'xmlreader (0.1)'
51: 'xmlrpc (0.51)'
52: 'xmlwriter (0.1)'
70: 'xsl (0.1)'
53: 'zip (1.9.1)'
7: 'zlib (1.1)'
Symfony 
version: 1.4.2-DEV
path: /www/redotheoffice/lib/symfony/1.4/lib
View Layer
Template: sfCodeView … indexSuccess.php 
Parameters:
$class (string)
$method (NULL)
$viewer (sfCodeViewer)
$history (array)
Logs
| # |
type |
message |
| 1 | sfPatternRouting | Match route "sfCodeView" (/sfCodeView/:class/:method) for /sfCodeView/sfCommandApplication with parameters array ( 'module' => 'sfCodeView', 'action' => 'index', 'class' => 'sfCommandApplication', 'method' => '',) |
| 2 | sfFilterChain | Executing filter "sfRenderingFilter" |
| 3 | sfFilterChain | Executing filter "sfExecutionFilter" |
| 4 | sfCodeViewActions | Call "sfCodeViewActions->executeIndex()" |
| 5 | sfPHPView | Render "sf_root_dir/plugins/sfCodeViewPlugin/modules/sfCodeView/templates/indexSuccess.php" |
| 6 | sfPHPView | Decorate content with "sf_app_dir/templates/layout.php" |
| 7 | sfPHPView | Render "sf_app_dir/templates/layout.php" |
| 8 | sfWebResponse | Send status "HTTP/1.1 200 OK" |
| 9 | sfWebResponse | Send header "Content-Type: text/html; charset=utf-8" |
Timers
| type | calls | time (ms) | time (%) |
|---|
| Configuration | 11 | 32.88 | 11 |
| Factories | 1 | 6.50 | 2 |
| Action "sfCodeView/index" | 1 | 36.90 | 12 |
| View "Success" for "sfCodeView/index" | 1 | 210.03 | 73 |
View php class code
Enter the name of a class you want to view in the toolbar and hit 'enter' to view its code, or click one of the available classes below.
User classes
- apps/frontend/config
- apps/frontend/lib
- config
- lib/form
- plugins/sfCodeViewPlugin/config
- plugins/sfCodeViewPlugin/lib
- plugins/sfCodeViewPlugin/modules/sfCodeView/actions
- plugins/sfCodeViewPlugin/modules/sfCodeView/lib
Symfony classes
- action
- addon
- autoload
- cache
- command
- config
- controller
- database
- debug
- escaper
- exception
- filter
- form/addon
- form
- generator
- i18n/Gettext
- i18n/extract
- i18n
- log
- mailer
- plugin
- request
- response
- routing
- storage
- task/app
- task/cache
- task/configure
- task/generator
- task/help
- task/i18n
- task/log
- task/plugin
- task/project
- task/project/validation
- task
- task/symfony
- task/test
- test
- user
- util
- validator/i18n
- validator
- view
- widget/i18n
- widget