Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small fixes

  • Loading branch information...
commit 75b56bdfefe554d134d157698faee97c7d2954a7 1 parent 762b0ad
@juzna authored
Showing with 34 additions and 12 deletions.
  1. +5 −0 addons.md
  2. +23 −8 options.md
  3. +6 −4 readme.md
View
5 addons.md
@@ -8,3 +8,8 @@ List of addons which are ready to be installed by `nette/addon-installer`.
- [NiftyGrid](http://packagist.org/packages/nifty/nifty-grid) ([GitHub](https://github.com/juzna/NiftyGrid))
- [Kdyby CURL extension](http://packagist.org/packages/kdyby/curl-extension)
- [WebLoader](http://packagist.org/packages/JanMarek/WebLoader)
+
+
+## Coming soon
+- [watchdog-client](https://github.com/bazo/watchdog-client/pull/1) by Bazo
+-
View
31 options.md
@@ -7,7 +7,7 @@ Nette Addon related options are in `composer.json` in *extra.nette-addon* sectio
"type": "nette-addon",
...
"extra": {
- "nette": {
+ "nette-addon": {
"config-extensions": {
"webLoader": "WebLoader\\Nette\\Config\\WebLoaderExtension"
}
@@ -63,7 +63,7 @@ CSS, JavaScript files (or images, flags or anything) required by addon. They're
**Example**:
```js
-extra: {
+"nette-addon": {
"assets": [ "example.css" ]
}
```
@@ -82,11 +82,10 @@ Extensions for Nette's [Dependency Injection Container](http://doc.nette.org/en/
**Example**:
```js
-"extra": {
- "nette": {
- "config-extensions": {
- "webLoader": "WebLoader\\Nette\\Config\\WebLoaderExtension"
- }
+"nette-addon": {
+ "config-extensions": {
+ "webLoader": "WebLoader\\Nette\\Config\\WebLoaderExtension"
+ }
}
```
@@ -98,7 +97,7 @@ Add new methods to existing classes, e.g. `addDatePicker` to a form container. I
**Example**:
```js
-"extra": {
+"nette-addon": {
"extension-methods": [
{
"class": "Nette\\Forms\\Container",
@@ -116,6 +115,22 @@ Add new methods to existing classes, e.g. `addDatePicker` to a form container. I
A [custom installer](https://github.com/juzna/nette-extras) for common assets
+
+### initializer
+Call a static method on every request (while bootstrapping the application). This allows addons with very specific needs
+ to register whatever they want.
+
+ Either a static method name (string) or list of those.
+
+**Example**:
+```js
+"nette-addon": {
+ "initializer": "Bazo\\Watchdog\\NetteLogger::register"
+}
+```
+
+
+
### web-loader
Add assets to web loader, so that they're automatically loaded into a web page header.
(Work in progress)
View
10 readme.md
@@ -6,14 +6,17 @@ helps installing Nette Addons.
## Status
-
This projects is in very early stage of development, there is not much info yet.
Please contact me for further info.
## Usage
+If you want to use an existing Nette Addon, please refer to [sandbox](https://github.com/juzna/nette-addons-sandbox) with integrated support.
+
+
+## Creating an Addon
Please read Composer's manual on [custom installers](http://getcomposer.org/doc/articles/custom-installers.md) for an introduction.
To create a new **Nette Addon**, simply create it as a *Composer package*. There are only 3 differences from normal Composer packages:
@@ -25,22 +28,21 @@ To create a new **Nette Addon**, simply create it as a *Composer package*. There
## Examples
-
Here are examples of Nette Addons: [Visual Paginator](https://github.com/juzna/nette-visual-paginator/blob/master/composer.json)
and [Kdyby CURL](https://github.com/juzna/nette-visual-paginator/blob/master/composer.json).
## Options
-
[Options](https://github.com/juzna/nette-addon-installer/blob/master/options.md)
-## Addons
+## Addons
Here is a list of experimental [addons](https://github.com/juzna/nette-addon-installer/blob/master/addons.md) which are ready for this installer.
+
## Changelog
This projects is in early development phase, many changes and compatibility breaks will occur.
Please see [change log](https://github.com/juzna/nette-addon-installer/blob/master/changelog.md) for details.
Please sign in to comment.
Something went wrong with that request. Please try again.