mirror of
https://github.com/jimeh/zynapse.git
synced 2026-02-18 23:06:38 +00:00
Cleaned out some unneeded code, and edited a few comments.
This commit is contained in:
8
vendor/zynapse/action_base.php
vendored
8
vendor/zynapse/action_base.php
vendored
@@ -35,13 +35,13 @@ class ActionBase {
|
||||
|
||||
public
|
||||
|
||||
# components
|
||||
# Components
|
||||
$env, // ActionEnvironment
|
||||
$view, // ActionView
|
||||
$locale, // ActionLocale
|
||||
$log, // ActionLog
|
||||
|
||||
# paths
|
||||
# Paths
|
||||
$apps_path,
|
||||
$lib_path,
|
||||
$log_path,
|
||||
@@ -52,6 +52,10 @@ class ActionBase {
|
||||
|
||||
|
||||
function __construct () {
|
||||
|
||||
}
|
||||
|
||||
function init () {
|
||||
$this->set_paths();
|
||||
}
|
||||
|
||||
|
||||
13
vendor/zynapse/action_environment.php
vendored
13
vendor/zynapse/action_environment.php
vendored
@@ -35,21 +35,12 @@ class ActionEnvironment {
|
||||
|
||||
public
|
||||
|
||||
# main
|
||||
# Main
|
||||
$env,
|
||||
$mode,
|
||||
$root,
|
||||
|
||||
# paths
|
||||
$apps_path,
|
||||
$lib_path,
|
||||
$log_path,
|
||||
$public_path,
|
||||
$tmp_path,
|
||||
$cache_path,
|
||||
$script_path,
|
||||
|
||||
# misc
|
||||
# Misc.
|
||||
$is_windows,
|
||||
$path_separator;
|
||||
|
||||
|
||||
5
vendor/zynapse/zynapse.php
vendored
5
vendor/zynapse/zynapse.php
vendored
@@ -34,6 +34,8 @@
|
||||
class Zynapse {
|
||||
|
||||
public static
|
||||
|
||||
# Action Classes
|
||||
$env, // ActionEnvironment
|
||||
$base, // ActionBase
|
||||
$view, // ActionView
|
||||
@@ -47,8 +49,9 @@ class Zynapse {
|
||||
require_once(ZNAP_LIB_ROOT . "/active_session.php");
|
||||
|
||||
self::$env = new ActionEnvironment();
|
||||
self::$base = new ActionBase();
|
||||
|
||||
self::$base = new ActionBase();
|
||||
self::$base->init();
|
||||
self::$base->env =& self::$env;
|
||||
|
||||
echo "hello world<br />\n";
|
||||
|
||||
Reference in New Issue
Block a user