Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Merge branch 'develop' into feature/move-nav-gen-to-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Feb 12, 2014
2 parents 42945a8 + 1fe621b commit c8bb483
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 61 deletions.
2 changes: 1 addition & 1 deletion library/Zepto/FileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @package Zepto
* @subpackage FileLoader
* @author Hassan Khan <contact@hassankhan.me>
* @link http://https://github.com/hassankhan/Zepto
* @link https://github.com/hassankhan/Zepto
* @license MIT
* @since 0.2
*/
Expand Down
4 changes: 2 additions & 2 deletions library/Zepto/FileLoader/PluginLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* @package Zepto
* @subpackage FileLoader
* @author Hassan Khan <contact@hassankhan.me>
* @link http://https://github.com/hassankhan/Zepto
* @license http://opensource.org/licenses/MIT
* @link https://github.com/hassankhan/Zepto
* @license MIT
* @since 0.2
*/
class PluginLoader extends \Zepto\FileLoader {
Expand Down
15 changes: 8 additions & 7 deletions library/Zepto/FileWriter.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php

namespace Zepto;

/**
* FileWriter
*
* @author Hassan Khan
* @link http://https://github.com/hassankhan/Zepto
* @license http://opensource.org/licenses/MIT
* @version 0.5
* @package Zepto
* @subpackage FileWriter
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/hassankhan/Zepto
* @license MIT
* @since 0.5
*/

namespace Zepto;

class FileWriter {

/**
Expand Down
15 changes: 8 additions & 7 deletions library/Zepto/FileWriter/MarkdownWriter.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php

namespace Zepto\FileWriter;

/**
* MarkdownWriter
*
* @author Hassan Khan
* @link http://https://github.com/hassankhan/Zepto
* @license http://opensource.org/licenses/MIT
* @version 0.5
* @package Zepto
* @subpackage MarkdownWriter
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/hassankhan/Zepto
* @license MIT
* @since 0.5
*/

namespace Zepto\FileWriter;

class MarkdownWriter extends \Zepto\FileWriter {

public function __construct()
Expand Down
17 changes: 9 additions & 8 deletions library/Zepto/PluginInterface.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php

namespace Zepto;

/**
* Zepto
* PluginInterface
*
* @author Hassan Khan
* @link http://https://github.com/hassankhan/Zepto
* @license http://opensource.org/licenses/MIT
* @version 0.2
* @package Zepto
* @subpackage PluginInterface
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/hassankhan/Zepto
* @license MIT
* @since 0.2
*/

namespace Zepto;

interface PluginInterface {

public function after_plugins_load();
Expand Down
16 changes: 4 additions & 12 deletions library/Zepto/Route.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Zepto;

/**
* Route
*
Expand All @@ -9,20 +11,10 @@
* @package Zepto
* @subpackage Route
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/hassankhan/Zepto
* @license MIT
* @since 0.6
*/

/**
* Zepto Route Class
*
* This is the Zepto URL Route, which contains the logic to respond to a request.
* The router determines if the matched URL is for this route and executes its callback.
*
* @since 0.6
*/

namespace Zepto;

class Route
{

Expand Down
2 changes: 1 addition & 1 deletion library/Zepto/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
* @subpackage Router
* @author Brandon Wamboldt <brandon.wamboldt@gmail.com>
* @author Hassan Khan <contact@hassankhan.me>
* @link http://https://github.com/hassankhan/Zepto
* @link https://github.com/hassankhan/Zepto
* @license MIT
* @since 0.2
*/
Expand Down
34 changes: 11 additions & 23 deletions library/Zepto/Zepto.php
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
<?php

/**
* Zepto
*
* @author Hassan Khan
* @link http://https://github.com/hassankhan/Zepto
* @license http://opensource.org/licenses/MIT
* @version 0.2
*/

namespace Zepto;

// Define constant for root directory
defined('ROOT_DIR')
|| define('ROOT_DIR', realpath(getcwd()) . '/');

use Pimple;
use Whoops;
use Michelf\MarkdownExtra;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;


/**
* Zepto
*
* @package Zepto
* @subpackage Zepto
* @author Hassan Khan <contact@hassankhan.me>
* @link https://github.com/hassankhan/Zepto
* @license MIT
* @since 0.2
*/
class Zepto {

/**
*
* Current application version
*/
const VERSION = '0.6';
Expand Down Expand Up @@ -230,15 +225,8 @@ public function run_hooks($hook_id, $args = array())
protected function load_plugins()
{
if ($this->app['plugins_enabled'] === true) {
$plugin_loader = $this->app['plugin_loader'];

// Load plugins from 'plugins' folder
try {
$this->app['plugins'] = $plugin_loader->load_dir();
}
catch (\Exception $e) {
$this->app['router']->error($e);
}
$this->app['plugins'] = $this->app['plugin_loader']->load_dir();
}
$this->run_hooks('after_plugins_load');
}
Expand Down

0 comments on commit c8bb483

Please sign in to comment.