Permalink
Browse files

Changing repository structure (fixes #4)

  • Loading branch information...
1 parent 682f6ea commit 14165943dc2b1dba91b84535504ebb0dfb6c81d8 @Gregwar committed Dec 15, 2011
@@ -1,6 +1,6 @@
<?php
-namespace Gregwar;
+namespace Gregwar\ImageBundle;
require_once (__DIR__.'/ImageColor.php');
@@ -545,7 +545,7 @@ protected function _rectangle($x1, $y1, $x2, $y2, $color, $filled = false)
*/
protected function _line($x1, $y1, $x2, $y2, $color = 0x000000)
{
- imageline($this->gd, $x1, $y1, $c2, $y2, ImageColor::parse($color));
+ imageline($this->gd, $x1, $y1, $x2, $y2, ImageColor::parse($color));
}
/**
@@ -1,6 +1,6 @@
<?php
-namespace Gregwar;
+namespace Gregwar\ImageBundle;
/**
* Color manipulation class
@@ -2,7 +2,7 @@
namespace Gregwar\ImageBundle;
-use Gregwar\Image;
+use Gregwar\ImageBundle\Image;
/**
* Image manipulation class
View
@@ -6,8 +6,32 @@ Gregwar's ImageBundle
Installation
============
-To install `GregwarImageBundle`, first adds it to your deps and clone it in your
-vendor directory, then add the namespace to your `app/autoload.php` file:
+***Using the vendors script***
+
+Add the following lines to your `deps` file:
+
+```
+ [GregwarImageBundle]
+ git=git://github.com/Gregwar/ImageBundle.git
+ target=/bundles/Gregwar/ImageBundle
+```
+
+Now, run the vendors script to download the bundle:
+
+``` bash
+$ php bin/vendors install
+```
+
+***Using submodules***
+
+If you prefer instead to use git submodules, then run the following:
+
+``` bash
+$ git submodule add git://github.com/Gregwar/ImageBundle.git vendor/bundles/Gregwar/ImageBundle
+$ git submodule update --init
+```
+
+Then, add it to your `autoload.pp` :
```php
<?php

0 comments on commit 1416594

Please sign in to comment.