main/core/Listener/Resource/Types/DirectoryListener.php
public function onOpen(OpenResourceEvent $event)
    {
        $directory = $event->getResource();

        $content = $this->templating->render(
            'ClarolineCoreBundle:directory:index.html.twig', [
                'directory' => $directory,
                '_resource' => $directory,
            ]
        );

        $response = new Response($content);
        $event->setResponse($response);

        $event->stopPropagation();
    }
public function onOpen(OpenResourceEvent $event)
    {
        $directory = $event->getResource();

        $content = $this->templating->render(
            'ClarolineCoreBundle:directory:index.html.twig', [
                'directory' => $directory,
                '_resource' => $directory,
            ]
        );

        $response = new Response($content);
        $event->setResponse($response);

        $event->stopPropagation();
    }
public function onOpen ( OpenResourceEvent $ event ) { $ directory = $ event -> getResource ( ) ; $ content = $ this -> templating -> render ( 'ClarolineCoreBundle:directory:index.html.twig' , [ 'directory' => $ directory , '_resource' => $ directory , ] ) ; $ response = new Response ( $ content ) ; $ event -> setResponse ( $ response ) ; $ event -> stopPropagation ( ) ; }
Opens a directory.

@DI\Observe("open_directory")

@param OpenResourceEvent $event
Opens a directory .