Registers a new constraint with the system. Constraints are used
by the routes as placeholders for regular expressions to make defining
the routes more human-friendly.

You can pass an associative array as $placeholder, and have
multiple placeholders added at once.

@param string|array $placeholder
@param string       $pattern

@return \CodeIgniter\Router\RouteCollectionInterface