Skip to content
Snippets Groups Projects
Commit 3f251975 authored by Tim Plunkett's avatar Tim Plunkett Committed by Jeff Geerling
Browse files

Issue #2055201 by timplunkett: Bundles are no longer supported.

parent 04d4afff
No related branches found
No related tags found
No related merge requests found
honeypot__config:
pattern: '/admin/config/content/honeypot'
defaults:
_controller: 'honeypot.settings.form:getForm'
_form: '\Drupal\honeypot\HoneypotSettingsController'
requirements:
_permission: 'administer honeypot'
\ No newline at end of file
<?php
/**
* @file
* Contains Drupal\honeypot\HoneypotBundle.
*/
namespace Drupal\honeypot;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Provides the honeypot dependency injection container.
*/
class HoneypotBundle extends Bundle {
/**
* Overrides \Symfony\Component\HttpKernel\Bundle\Bundle::build().
*/
public function build(ContainerBuilder $container) {
// Register the HoneypotSettingsController class with the DIC.
$container->register('honeypot.settings.form', 'Drupal\honeypot\HoneypotSettingsController');
}
}
\ No newline at end of file
......@@ -14,13 +14,6 @@ use Drupal\Core\Form\FormInterface;
*/
class HoneypotSettingsController implements FormInterface {
/**
* Creates a new instance of this form.
*/
public function getForm() {
return drupal_get_form($this);
}
/**
* Get a value from the retrieved form settings array.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment