Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs improvement #195

Merged
merged 25 commits into from
Jul 11, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4fb765e
Disabled some options
christeredvartsen Jun 20, 2013
a4fe03a
Moved some docs around
christeredvartsen Jun 20, 2013
8a6c740
Renamed some files
christeredvartsen Jun 26, 2013
e8a8417
Moved some dependencies around
christeredvartsen Jul 7, 2013
13de0d0
Reordered some stuff
christeredvartsen Jul 7, 2013
925ec4d
The ResourceInterface now implements the ListenerInterface
christeredvartsen Jul 7, 2013
96b8440
Removed example of authenticating via query parameters
christeredvartsen Jul 7, 2013
a3888ac
Loads of docs-improvements
christeredvartsen Jul 7, 2013
c615ae6
More docs updates
christeredvartsen Jul 7, 2013
6caf4e1
Removed empty section
christeredvartsen Jul 8, 2013
07fe7d4
Changed some error messages and made the XML formatter better handle …
christeredvartsen Jul 8, 2013
b7080b4
More docs fixes
christeredvartsen Jul 8, 2013
1b8c8d5
Renamed file
christeredvartsen Jul 8, 2013
d6a7672
Renamed another file
christeredvartsen Jul 8, 2013
df2d955
Removed some doc files
christeredvartsen Jul 8, 2013
50fb7e2
Removed a couple of docs files
christeredvartsen Jul 11, 2013
36e98e3
Added an IPv6 to the default whitelist
christeredvartsen Jul 11, 2013
0a113a0
Whitespace fix
christeredvartsen Jul 11, 2013
83aba25
Updated some comments
christeredvartsen Jul 11, 2013
09dad70
More docs fixes
christeredvartsen Jul 11, 2013
f11838f
Updated composer packages
christeredvartsen Jul 11, 2013
be8efdf
Support multiple configuration files in the config directory when ins…
christeredvartsen Jul 11, 2013
ca69e79
Minor corrections
christeredvartsen Jul 11, 2013
e602c14
Removed empty line
christeredvartsen Jul 11, 2013
ccb89f7
Added missing semicolons and 'IF NOT EXISTS'
christeredvartsen Jul 11, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading