1
0
Fork 0

Update trigger faq

pull/257/head
François Pluchino 2012-01-25 18:23:04 +01:00
parent c7b898d10d
commit 1699b5c338
1 changed files with 21 additions and 0 deletions

View File

@ -42,6 +42,27 @@ For any given project:
}
```
Trigger Example:
```php
<?php
namespace MyVendor\MyRootPackage;
use Composer\Trigger\TriggerEvent;
class MyClass
{
public static function myStaticMethod(TriggerEvent $event)
{
// code...
}
public static function myStaticMethod2(TriggerEvent $event)
{
// code...
}
}
```
## Informations:
A declared trigger with non existent file will be ignored.