Flight is designed to be an extensible framework. The framework comes with a set of default methods and components, but it allows you to map your own methods, register your own classes, or even override existing classes and methods.
Flight is designed to be an extensible framework. The framework comes with a set of default methods and components, but it allows you to map your own methods, register your own classes, or even override existing classes and methods.
## Mapping Methods
### Mapping Methods
To map your own custom method, you use the `map` function:
To map your own custom method, you use the `map` function:
@ -12,7 +12,7 @@ To map your own custom method, you use the `map` function:
// Call your custom method
// Call your custom method
Flight::hello('Bob');
Flight::hello('Bob');
## Registering Classes
### Registering Classes
To register your own class, you use the `register` function:
To register your own class, you use the `register` function: