Skip to content

Commit

Permalink
Fix creating/editing articles
Browse files Browse the repository at this point in the history
  • Loading branch information
vkhramtsov committed Nov 30, 2018
1 parent 7f1e2fc commit 3fa84f4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
before_install:
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then openssl aes-256-cbc -K $encrypted_38f96163e3a4_key -iv $encrypted_38f96163e3a4_iv -in .travis/deploy.key.enc -out .travis/deploy.key -d; fi
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
- curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq python-docutils nodejs yarn
Expand Down
14 changes: 8 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ easy_admin:
- 'published'
- 'title'
- 'publicationDate'
- { property: 'teaser', type: 'ckeditor' }
- { property: 'body', type: 'ckeditor' }
- { property: 'teaser', type: 'FOS\CKEditorBundle\Form\Type\CKEditorType' }
- { property: 'body', type: 'FOS\CKEditorBundle\Form\Type\CKEditorType' }
3 changes: 0 additions & 3 deletions src/PhpOfBy/WebsiteBundle/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
use Sensio\Bundle\FrameworkExtraBundle\Configuration as Mvc;
use Symfony\Component\Routing\Annotation\Route;

/**
* @Mvc\Route(service="phpofby_website.controller.default")
*/
class DefaultController extends AbstractServiceController
{
/**
Expand Down
4 changes: 1 addition & 3 deletions src/PhpOfBy/WebsiteBundle/Resources/config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
parameters:
phpofby_website.controller.default.class: PhpOfBy\WebsiteBundle\Controller\DefaultController

services:
phpofby_website.controller.default:
class: '%phpofby_website.controller.default.class%'
PhpOfBy\WebsiteBundle\Controller\DefaultController:
parent: common.contoller.abstract
public: true
arguments: []

0 comments on commit 3fa84f4

Please sign in to comment.