CopypasteController removed to PasteController.

This commit is contained in:
Alexey Skobkin 2019-01-19 20:59:09 +03:00
parent 9bdc423af2
commit 7f58d12706
3 changed files with 6 additions and 10 deletions

View file

@ -46,7 +46,7 @@
{%- endblock -%}
{%- block sidebar -%}
{{ render(controller('SkobkinCopyPasteBundle:CopyPaste:sidebar')) }}
{{ render(controller('SkobkinCopyPasteBundle:Paste:sidebar')) }}
{%- endblock -%}
{% block content %}{% endblock %}

View file

@ -12,11 +12,7 @@ use Skobkin\Bundle\CopyPasteBundle\Form\CopypasteType;
use DT\Bundle\GeshiBundle\Highlighter\GeshiHighlighter;
use \GeSHi\GeSHi;
/**
* Copypaste controller.
*
*/
class CopypasteController extends Controller
class PasteController extends Controller
{
/**

View file

@ -1,21 +1,21 @@
copypaste_show_public:
path: /{id}
defaults: { _controller: "SkobkinCopyPasteBundle:Copypaste:show", secret: null }
defaults: { _controller: 'Skobkin\Bundle\CopyPasteBundle\Controller\PasteController::showAction', secret: null }
requirements:
id: \d+
copypaste_show_private:
path: /{id}/{secret}
defaults: { _controller: "SkobkinCopyPasteBundle:Copypaste:show" }
defaults: { _controller: 'Skobkin\Bundle\CopyPasteBundle\Controller\PasteController::showAction' }
requirements:
id: \d+
secret: \w{16}
copypaste_new:
path: /
defaults: { _controller: "SkobkinCopyPasteBundle:Copypaste:new" }
defaults: { _controller: 'Skobkin\Bundle\CopyPasteBundle\Controller\PasteController::newAction' }
copypaste_create:
path: /create
defaults: { _controller: "SkobkinCopyPasteBundle:Copypaste:create" }
defaults: { _controller: 'Skobkin\Bundle\CopyPasteBundle\Controller\PasteController::createAction' }
methods: POST