CopypasteController removed to PasteController.
This commit is contained in:
parent
9bdc423af2
commit
7f58d12706
|
@ -46,7 +46,7 @@
|
|||
{%- endblock -%}
|
||||
|
||||
{%- block sidebar -%}
|
||||
{{ render(controller('SkobkinCopyPasteBundle:CopyPaste:sidebar')) }}
|
||||
{{ render(controller('SkobkinCopyPasteBundle:Paste:sidebar')) }}
|
||||
{%- endblock -%}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
||||
/**
|
|
@ -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
|
Loading…
Reference in a new issue