Skip to content

Commit

Permalink
Merge ccb89f7 into e358727
Browse files Browse the repository at this point in the history
  • Loading branch information
christeredvartsen committed Jul 11, 2013
2 parents e358727 + ccb89f7 commit 17538fc
Show file tree
Hide file tree
Showing 44 changed files with 2,359 additions and 2,230 deletions.
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,20 @@
},
"require": {
"php": ">=5.4.0",
"ext-imagick": ">=2.0",
"ext-imagick": ">=3.0.1",
"symfony/http-foundation": "2.*"
},
"require-dev": {
"mikey179/vfsStream": "1.*",
"doctrine/dbal": "2.*",
"phpunit/phpunit": "3.*",
"behat/behat": "2.*",
"guzzle/guzzle": "3.*"
"guzzle/guzzle": "3.*",
"doctrine/dbal": "2.*"
},
"suggest": {
"ext-mongo": ">=1.3.0",
"ext-memcached": ">=2.0.0"
"ext-mongo": "Enables usage of MongoDB and GridFS as database and store. Recommended version: >=1.4.0",
"ext-memcached": "Enables usage of the Memcached cache adapter for custom event listeners. Recommended version: >=2.0.0",
"doctrine/dbal": "Enables usage of using RDMS for storing data (and optionally images). Recommended version: >=2.3"
},
"autoload": {
"psr-0": {
Expand Down
53 changes: 29 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 17 additions & 12 deletions config/config.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,18 @@
* @var array
*/
'eventListeners' => array(
'auth' => function() {
return new EventListener\Authenticate();
},
'accessToken' => function() {
return new EventListener\AccessToken();
},
'auth' => function() {
return new EventListener\Authenticate();
},
'statsAccess' => function() {
return new EventListener\StatsAccess(array(
'whitelist' => array('127.0.0.1'),
'whitelist' => array('127.0.0.1', '::1'),
'blacklist' => array(),
));
}
},
),

/**
Expand Down Expand Up @@ -241,25 +241,30 @@
},
),


/**
* Custom routes for Imbo
* Custom resources for Imbo
*
* @link http://docs.imbo-project.org
* @var array
*/
'routes' => array(),
'resources' => array(),

/**
* Custom resources for Imbo
* Custom routes for Imbo
*
* @link http://docs.imbo-project.org
* @var array
*/
'resources' => array(),
'routes' => array(),
);

if (file_exists(__DIR__ . '/../../../../config/config.php')) {
if (is_dir(__DIR__ . '/../../../../config')) {
// Someone has installed Imbo via a custom composer.json, so the custom config is outside of
// the vendor dir
$config = array_replace_recursive($config, require __DIR__ . '/../../../../config/config.php');
// the vendor dir. Loop through all available php files in the config dir
foreach (glob(__DIR__ . '/../../../../config/*.php') as $file) {
$config = array_replace_recursive($config, require $file);
}
} else if (file_exists(__DIR__ . '/config.php')) {
$config = array_replace_recursive($config, require __DIR__ . '/config.php');
}
Expand Down
5 changes: 2 additions & 3 deletions config/config.testing.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Imbo\Image\Transformation,
Imbo\Cache,
Imbo\Resource\ResourceInterface,
Imbo\EventListener\ListenerInterface,
Imbo\EventListener\ListenerDefinition,
Imbo\EventManager\EventInterface,
Imbo\Model\ArrayModel,
Expand All @@ -24,7 +23,7 @@
// Require composer autoloader
require __DIR__ . '/../vendor/autoload.php';

class CustomResource implements ResourceInterface, ListenerInterface {
class CustomResource implements ResourceInterface {
public function getAllowedMethods() {
return array('GET');
}
Expand All @@ -45,7 +44,7 @@ public function get(EventInterface $event) {
}
}

class CustomResource2 implements ResourceInterface, ListenerInterface {
class CustomResource2 implements ResourceInterface {
public function getAllowedMethods() {
return array('GET', 'PUT');
}
Expand Down
4 changes: 2 additions & 2 deletions config/imbo.apache.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
# ServerAlias imbo1 imbo2 imbo3

# Document root where the index.php file is located
DocumentRoot /path/to/imbo/public
DocumentRoot /path/to/install/vendor/imbo/imbo/public

# Logging
# CustomLog /var/log/apache2/imbo.access_log combined
# ErrorLog /var/log/apache2/imbo.error_log

# Rewrite rules that rewrite all requests to the index.php script
<Directory /path/to/imbo/public>
<Directory /path/to/install/vendor/imbo/imbo/public>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
Expand Down
4 changes: 2 additions & 2 deletions config/imbo.nginx.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ server {
# server_name imbo imbo1 imbo2 imbo3;

# Path to the public directory where index.php is located
root /path/to/imbo/public;
root /path/to/install/vendor/imbo/imbo/public;
index index.php;

# Logs
Expand All @@ -21,7 +21,7 @@ server {
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /path/to/imbo/public/index.php;
fastcgi_param SCRIPT_FILENAME /path/to/install/vendor/imbo/imbo/public/index.php;
include fastcgi_params;
}
}
Expand Down
71 changes: 0 additions & 71 deletions docs/advanced/cache_adapters.rst

This file was deleted.

12 changes: 0 additions & 12 deletions docs/advanced/custom_database_drivers.rst

This file was deleted.

0 comments on commit 17538fc

Please sign in to comment.