Skip to content

Commit

Permalink
Slight rewording and corrected a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Elbert Foo committed Jul 11, 2012
1 parent 5b56a57 commit 892ab95
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ Plugins and hooks
-----------------

Plugins implement [hooks](http:https://en.wikipedia.org/wiki/Hooking). Hooks are entry
points for code that extends the application. Swiftlet has a few core hooks but
they can be registered pretty much anywhere using
points for code that extends the application. Swiftlet has a few core hooks and
additiontal ones can be registered pretty much anywhere using
`$this->app->registerHook($hookName)`.

**Plugin `Swiftlet/Plugins/Foo.php`**
Expand All @@ -208,7 +208,7 @@ variable `helloWorld` from our previous example to `Hi world!`.

Plugins don't need to be installed or activated, all files in the
`Swiftlet/Plugins/` directory are automatically included and their classes
instantiated. They are hooked in alphabetical order.
instantiated. Plugins are hooked in alphabetical order.

The core hooks are:

Expand All @@ -224,7 +224,7 @@ Configuration

No configuration is needed to run Swiftlet. If you're writing a model that
does require configuration, e.g. credentials to establish a database connection,
you may use the applications `setConfig` and `getConfig` methods:
you may use the application's `setConfig` and `getConfig` methods:

```php
<?php
Expand Down Expand Up @@ -266,7 +266,7 @@ Create a new model instance
Create or return an existing model instance

* `string getRootPath()`
Absolute client-side path to website root
Absolute client-side path to the website root

* `registerHook(string $hookName, array $params)`
Register a hook
Expand Down

0 comments on commit 892ab95

Please sign in to comment.