Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 403]

(no description)

File Size: 337 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: BehatExtension  - X-Ref

Behat extension for moodle

Provides multiple features directory loading (Gherkin\Loader\MoodleFeaturesSuiteLoader

__construct(ServiceProcessor $processor = null)   X-Ref
Initializes compiler pass.

param: null|ServiceProcessor $processor

load(ContainerBuilder $container, array $config)   X-Ref
Loads moodle specific configuration.

param: ContainerBuilder $container ContainerBuilder instance
param: array            $config    Extension configuration hash (from behat.yml)

loadMoodleListFormatter(ContainerBuilder $container)   X-Ref
Loads moodle List formatter.

param: ContainerBuilder $container

loadMoodleStepcountFormatter(ContainerBuilder $container)   X-Ref
Loads moodle Step count formatter.

param: ContainerBuilder $container

loadMoodleScreenshotFormatter(ContainerBuilder $container)   X-Ref
Loads moodle screenshot formatter.

param: ContainerBuilder $container

createOutputPrinterDefinition()   X-Ref
Creates output printer definition.

return: Definition

loadSkipPassedController(ContainerBuilder $container, $cachepath)   X-Ref
Loads skip passed controller.

param: ContainerBuilder $container
param: null|string      $cachepath

loadFilesystemSkipPassedScenariosListLocator(ContainerBuilder $container)   X-Ref
Loads filesystem passed scenarios list locator.

param: ContainerBuilder $container

loadDefinitionPrinters(ContainerBuilder $container)   X-Ref
Loads definition printers.

param: ContainerBuilder $container

loadController(ContainerBuilder $container)   X-Ref
Loads definition controller.

param: ContainerBuilder $container

loadChainedStepTester(ContainerBuilder $container)   X-Ref
Loads chained step tester.

param: ContainerBuilder $container

loadEventDispatchingStepTester(ContainerBuilder $container)   X-Ref
Loads event-dispatching step tester.

param: ContainerBuilder $container

configure(ArrayNodeDefinition $builder)   X-Ref
Setups configuration for current extension.

param: ArrayNodeDefinition $builder

getConfigKey()   X-Ref
Returns the extension config key.

return: string

initialize(ExtensionManager $extensionmanager)   X-Ref
Initializes other extensions.

This method is called immediately after all extensions are activated but
before any extension `configure()` method is called. This allows extensions
to hook into the configuration of other extensions providing such an
extension point.

param: ExtensionManager $extensionmanager

process(ContainerBuilder $container)   X-Ref
You can modify the container here before it is dumped to PHP code.

param: ContainerBuilder $container

alias_old_namespaces()   X-Ref
Alias old namespace of given. when and then for BC.