function CommandInterceptor(eventBus) {

  /**
   * @type {EventBus}
   */
  this._eventBus = eventBus;
}
A utility that can be used to plug into the command execution for
extension and/or validation.

@class
@constructor

@example

```javascript
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';

class CommandLogger extends CommandInterceptor {
  constructor(eventBus) {
    super(eventBus);

  this.preExecute('shape.create', (event) => {
    console.log('commandStack.shape-create.preExecute', event);
  });
}
```

@param {EventBus} eventBus