parent
66b3285895
commit
9e9930c035
@ -0,0 +1,26 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\ContactBundle\DependencyInjection; |
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder; |
||||
use Symfony\Component\Config\FileLocator; |
||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
||||
use Symfony\Component\DependencyInjection\Loader; |
||||
|
||||
/** |
||||
* This is the class that loads and manages your bundle configuration |
||||
* |
||||
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html} |
||||
*/ |
||||
class ChamiloContactExtension extends Extension |
||||
{ |
||||
/** |
||||
* {@inheritDoc} |
||||
*/ |
||||
public function load(array $configs, ContainerBuilder $container) |
||||
{ |
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||||
$loader->load('admin.yml'); |
||||
} |
||||
} |
||||
@ -0,0 +1,3 @@ |
||||
contact: |
||||
resource: "@ChamiloContactBundle/Controller/ContactController.php" |
||||
type: annotation |
||||
@ -1,7 +1,5 @@ |
||||
{% extends '@ChamiloTheme/Layout/base-layout.html.twig' %} |
||||
|
||||
{% block page_content %} |
||||
|
||||
{% block sonata_page_container %} |
||||
{{ form_widget(form) }} |
||||
|
||||
{% endblock %} |
||||
|
||||
Loading…
Reference in new issue