EventConfig::requireFeatures

Enters a required event method feature that the application demands

&reftitle.description; public `bool` `EventConfig::requireFeatures` `int` `feature`

Enters a required event method feature that the application demands

&reftitle.parameters;

`feature`

- Bitmask of required features. See `EventConfig::FEATURE_*` constants

&reftitle.returnvalues;

&return.success;

&reftitle.examples;

### `EventConfig::requireFeatures` example

    <?php
    $cfg = new EventConfig();

    // Create event_base associated with the config
    $base = new EventBase($cfg);

    // Require FDS feature
    if ($cfg->requireFeatures(EventConfig::FEATURE_FDS)) {
        echo "FDS feature is now requried\n";

        $base = new EventBase($cfg);
        ($base->getFeatures() & EventConfig::FEATURE_FDS)
            and print("FDS - arbitrary file descriptor types, and not just sockets\n");
    }
    ?>

&example.outputs.similar;

    FDS feature is now requried
    FDS - arbitrary file descriptor types, and not just sockets

&reftitle.seealso;

- `EventBase::getFeatures`