Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Insight fixes02012017 (#39)
Browse files Browse the repository at this point in the history
insight fixes
  • Loading branch information
angelk committed Jan 1, 2017
1 parent e419122 commit 12bcd68
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -5,7 +5,7 @@
"description": "Tekstove.info website",
"autoload": {
"psr-4": {
"": "src/"
"Tekstove\\SiteBundle\\": "src/Tekstove/SiteBundle/"
},
"classmap": [
"app/AppKernel.php",
Expand Down
Expand Up @@ -18,7 +18,7 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('site');
$treeBuilder->root('site');

// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
Expand Down
Expand Up @@ -5,7 +5,6 @@
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\FormBuilderInterface;

use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;

/**
Expand Down
Expand Up @@ -54,11 +54,11 @@ public function save(Post $post)
];

try {
$response = $this->getClient()
->post(
$this->getRelativeUrl(),
['body' => json_encode($changeSet)]
);
$this->getClient()
->post(
$this->getRelativeUrl(),
['body' => json_encode($changeSet)]
);
} catch (RequestException $e) {
if ($e->getCode() != 400) {
throw $e;
Expand Down
Expand Up @@ -4,7 +4,6 @@

use Tekstove\SiteBundle\Model\Gateway\Tekstove\AbstractGateway;
use Tekstove\SiteBundle\Model\Forum\Topic;
use Tekstove\SiteBundle\Model\Forum\Post;
use Tekstove\SiteBundle\Model\Gateway\Tekstove\Client\Exception\RequestException;
use Tekstove\SiteBundle\Model\Gateway\Tekstove\Client\Exception\TekstoveValidationException;

Expand Down
6 changes: 6 additions & 0 deletions src/Tekstove/SiteBundle/Resources/config/routing.yml
Expand Up @@ -16,12 +16,15 @@ contacts:
login:
path: /login
defaults: { _controller: SiteBundle:User:login }
methods: [GET, POST]

loginCheck:
path: /loginCheck
methods: [GET, POST]

logout:
path: /logout
methods: [GET, POST]

register:
path: /user/register
Expand All @@ -41,10 +44,12 @@ tekstove.site.user.edit:
userPmList:
path: /user/pm/list
defaults: { _controller: SiteBundle:User\Pm:list }
methods: [GET]

tekstove_site.user.pm.send:
path: /user/message/{toUserId}/{title}
defaults: { _controller: SiteBundle:User\Pm:add, title: '' }
methods: [GET, POST]

tekstove.site.user.pm.view:
path: /user/pm/view/{id}
Expand Down Expand Up @@ -140,6 +145,7 @@ tekstove.site.forum.post.newest:
chat:
path: /chat
defaults: { _controller: SiteBundle:Chat:index }
methods: [GET]

tekstove.feed.forum.topic:
path: /feed/forum/topic.xml
Expand Down

0 comments on commit 12bcd68

Please sign in to comment.