CopypasteController removed to PasteController.
This commit is contained in:
parent
9bdc423af2
commit
7f58d12706
|
@ -46,7 +46,7 @@
|
||||||
{%- endblock -%}
|
{%- endblock -%}
|
||||||
|
|
||||||
{%- block sidebar -%}
|
{%- block sidebar -%}
|
||||||
{{ render(controller('SkobkinCopyPasteBundle:CopyPaste:sidebar')) }}
|
{{ render(controller('SkobkinCopyPasteBundle:Paste:sidebar')) }}
|
||||||
{%- endblock -%}
|
{%- endblock -%}
|
||||||
|
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
|
|
@ -12,11 +12,7 @@ use Skobkin\Bundle\CopyPasteBundle\Form\CopypasteType;
|
||||||
use DT\Bundle\GeshiBundle\Highlighter\GeshiHighlighter;
|
use DT\Bundle\GeshiBundle\Highlighter\GeshiHighlighter;
|
||||||
use \GeSHi\GeSHi;
|
use \GeSHi\GeSHi;
|
||||||
|
|
||||||
/**
|
class PasteController extends Controller
|
||||||
* Copypaste controller.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
class CopypasteController extends Controller
|
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,21 +1,21 @@
|
||||||
copypaste_show_public:
|
copypaste_show_public:
|
||||||
path: /{id}
|
path: /{id}
|
||||||
defaults: { _controller: "SkobkinCopyPasteBundle:Copypaste:show", secret: null }
|
defaults: { _controller: 'Skobkin\Bundle\CopyPasteBundle\Controller\PasteController::showAction', secret: null }
|
||||||
requirements:
|
requirements:
|
||||||
id: \d+
|
id: \d+
|
||||||
|
|
||||||
copypaste_show_private:
|
copypaste_show_private:
|
||||||
path: /{id}/{secret}
|
path: /{id}/{secret}
|
||||||
defaults: { _controller: "SkobkinCopyPasteBundle:Copypaste:show" }
|
defaults: { _controller: 'Skobkin\Bundle\CopyPasteBundle\Controller\PasteController::showAction' }
|
||||||
requirements:
|
requirements:
|
||||||
id: \d+
|
id: \d+
|
||||||
secret: \w{16}
|
secret: \w{16}
|
||||||
|
|
||||||
copypaste_new:
|
copypaste_new:
|
||||||
path: /
|
path: /
|
||||||
defaults: { _controller: "SkobkinCopyPasteBundle:Copypaste:new" }
|
defaults: { _controller: 'Skobkin\Bundle\CopyPasteBundle\Controller\PasteController::newAction' }
|
||||||
|
|
||||||
copypaste_create:
|
copypaste_create:
|
||||||
path: /create
|
path: /create
|
||||||
defaults: { _controller: "SkobkinCopyPasteBundle:Copypaste:create" }
|
defaults: { _controller: 'Skobkin\Bundle\CopyPasteBundle\Controller\PasteController::createAction' }
|
||||||
methods: POST
|
methods: POST
|
Loading…
Reference in a new issue