Permalink
Browse files

* Renamed Extension to ServiceProvider

  • Loading branch information...
m92o committed Nov 3, 2011
1 parent 9e5c53c commit 5517dd41c4753104e8dfa93669bb0a505c14c117
Showing with 12 additions and 12 deletions.
  1. +3 −3 ActiveRecordServiceProvider.php
  2. +9 −9 README.markdown
@@ -1,11 +1,11 @@
<?php
-namespace Extensions\ActiveRecordExtension;
+namespace Provider\ActiveRecordServiceProvider;
-use Silex\ExtensionInterface;
+use Silex\ServiceProviderInterface;
use Silex\Application;
-class ActiveRecordExtension implements ExtensionInterface {
+class ActiveRecordServiceProvider implements ServiceProviderInterface {
public function register(Application $app) {
require_once $app['ar.lib_path'].'/ActiveRecord.php';
View
@@ -1,7 +1,7 @@
-PHP-ActiveRecord Extension
-==========================
+PHP-ActiveRecord Service Provider for Silex
+===========================================
-PHP-ActiveRecord Extension provieds easy integration with [PHP-ActiveRecord](https://github.com/kla/php-activerecord) for easy database access.
+PHP-ActiveRecord Service Provider provieds easy integration with [PHP-ActiveRecord](https://github.com/kla/php-activerecord) for easy database access.
Parameters
----------
@@ -20,20 +20,20 @@ Installation
cd vendor
git clone https://github.com/kla/php-activerecord.git
cd ..
- cd Extensions
- git clone https://RafalFilipek@github.com/RafalFilipek/ActiveRecordExtension.git
+ cd Provider
+ git clone https://github.com/m92o/ActiveRecordServiceProvider.git
cd ..
mkdir Models
Registering
-----------
- use Extensions\ActiveRecordExtension\ActiveRecordExtension;
+ use Provider\ActiveRecordServiceProvider\ActiveRecordServiceProvider;
- $app['autoloader']->registerNamespace('Extensions', __DIR__);
+ $app['autoloader']->registerNamespace('Provider', __DIR__);
$app['autoloader']->registerNamespace('Models', __DIR__);
- $app->register(new ActiveRecordExtension(),
+ $app->register(new ActiveRecordServiceProvider(),
array(
- 'ar.lib_path' => __DIR__.'/vendor/php-activerecord',
+ 'ar.lib_path' => __DIR__.'/vendor/php-activerecord',
'ar.default_connection' => 'development',
'ar.connections' => array(
'development' => 'mysql://username:password@localhost/database_name'

0 comments on commit 5517dd4

Please sign in to comment.