Commit 4d5612a2241c3dee75aa529a270a1463b12f3dd1
1 parent
aeb43897
Exists in
master
and in
2 other branches
altera namespace
Showing
15 changed files
with
36 additions
and
36 deletions
Show diff stats
CocarBundle.php
Controller/AlarmController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -156,4 +156,4 @@ class AlarmController extends Controller | @@ -156,4 +156,4 @@ class AlarmController extends Controller | ||
| 156 | settype ($value, 'double'); | 156 | settype ($value, 'double'); |
| 157 | return round($value,1); | 157 | return round($value,1); |
| 158 | } | 158 | } |
| 159 | -} | ||
| 160 | \ No newline at end of file | 159 | \ No newline at end of file |
| 160 | +} |
Controller/CircuitsController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Component\HttpFoundation\Request; | 5 | use Symfony\Component\HttpFoundation\Request; |
| 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| @@ -9,8 +9,8 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | @@ -9,8 +9,8 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | ||
| 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 11 | 11 | ||
| 12 | -use GerenciadorRedes\Bundle\CocarBundle\Entity\Circuits; | ||
| 13 | -use GerenciadorRedes\Bundle\CocarBundle\Form\CircuitsType; | 12 | +use Swpb\Bundle\CocarBundle\Entity\Circuits; |
| 13 | +use Swpb\Bundle\CocarBundle\Form\CircuitsType; | ||
| 14 | 14 | ||
| 15 | /** | 15 | /** |
| 16 | * Circuits controller. | 16 | * Circuits controller. |
| @@ -33,7 +33,7 @@ class CircuitsController extends Controller | @@ -33,7 +33,7 @@ class CircuitsController extends Controller | ||
| 33 | 33 | ||
| 34 | $entity = new Circuits(); | 34 | $entity = new Circuits(); |
| 35 | 35 | ||
| 36 | - $entities = $em->getRepository('GerenciadorRedes\Bundle\CocarBundle\Entity\Circuits')->findAll(); | 36 | + $entities = $em->getRepository('Swpb\Bundle\CocarBundle\Entity\Circuits')->findAll(); |
| 37 | 37 | ||
| 38 | return array( | 38 | return array( |
| 39 | 'entities' => $entities, | 39 | 'entities' => $entities, |
Controller/DailyPerformController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | ||
| 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 10 | 10 | ||
| 11 | -use GerenciadorRedes\Bundle\CocarBundle\Entity\DailyPerformance; | 11 | +use Swpb\Bundle\CocarBundle\Entity\DailyPerformance; |
| 12 | 12 | ||
| 13 | class DailyPerformController extends Controller | 13 | class DailyPerformController extends Controller |
| 14 | { | 14 | { |
| @@ -401,4 +401,4 @@ class DailyPerformController extends Controller | @@ -401,4 +401,4 @@ class DailyPerformController extends Controller | ||
| 401 | return (isset($recommendCir[$j])) ? $recommendCir[$j] : 0; | 401 | return (isset($recommendCir[$j])) ? $recommendCir[$j] : 0; |
| 402 | } | 402 | } |
| 403 | } | 403 | } |
| 404 | -} | ||
| 405 | \ No newline at end of file | 404 | \ No newline at end of file |
| 405 | +} |
Controller/DefaultController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Request; | 6 | use Symfony\Component\HttpFoundation\Request; |
Controller/EntityController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Component\HttpFoundation\Request; | 5 | use Symfony\Component\HttpFoundation\Request; |
| 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| @@ -8,8 +8,8 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | @@ -8,8 +8,8 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | ||
| 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 10 | 10 | ||
| 11 | -use GerenciadorRedes\Bundle\CocarBundle\Entity\Entity; | ||
| 12 | -use GerenciadorRedes\Bundle\CocarBundle\Form\EntityType; | 11 | +use Swpb\Bundle\CocarBundle\Entity\Entity; |
| 12 | +use Swpb\Bundle\CocarBundle\Form\EntityType; | ||
| 13 | 13 | ||
| 14 | /** | 14 | /** |
| 15 | * Entity controller. | 15 | * Entity controller. |
Controller/GraphController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -998,4 +998,4 @@ class GraphController extends Controller | @@ -998,4 +998,4 @@ class GraphController extends Controller | ||
| 998 | return new Response("<H1>Não existem máquinas cadastradas para esse circuito!</H1>"); | 998 | return new Response("<H1>Não existem máquinas cadastradas para esse circuito!</H1>"); |
| 999 | } | 999 | } |
| 1000 | } | 1000 | } |
| 1001 | -} | ||
| 1002 | \ No newline at end of file | 1001 | \ No newline at end of file |
| 1002 | +} |
Controller/MonitorController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -93,4 +93,4 @@ class MonitorController extends Controller | @@ -93,4 +93,4 @@ class MonitorController extends Controller | ||
| 93 | $date = empty($date) ? date('U') : $date; | 93 | $date = empty($date) ? date('U') : $date; |
| 94 | shell_exec("rrdtool update $arqRrd $date:$in:$out"); | 94 | shell_exec("rrdtool update $arqRrd $date:$in:$out"); |
| 95 | } | 95 | } |
| 96 | -} | ||
| 97 | \ No newline at end of file | 96 | \ No newline at end of file |
| 97 | +} |
Controller/MonthlyPerformController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | ||
| 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 10 | 10 | ||
| 11 | -use GerenciadorRedes\Bundle\CocarBundle\Entity\MonthlyPerformance; | 11 | +use Swpb\Bundle\CocarBundle\Entity\MonthlyPerformance; |
| 12 | 12 | ||
| 13 | class MonthlyPerformController extends Controller | 13 | class MonthlyPerformController extends Controller |
| 14 | { | 14 | { |
| @@ -163,4 +163,4 @@ class MonthlyPerformController extends Controller | @@ -163,4 +163,4 @@ class MonthlyPerformController extends Controller | ||
| 163 | 163 | ||
| 164 | return new Response(); | 164 | return new Response(); |
| 165 | } | 165 | } |
| 166 | -} | ||
| 167 | \ No newline at end of file | 166 | \ No newline at end of file |
| 167 | +} |
Controller/ReliabilityController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | ||
| 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 10 | 10 | ||
| 11 | -use GerenciadorRedes\Bundle\CocarBundle\Entity\Reliability; | 11 | +use Swpb\Bundle\CocarBundle\Entity\Reliability; |
| 12 | 12 | ||
| 13 | class ReliabilityController extends Controller | 13 | class ReliabilityController extends Controller |
| 14 | { | 14 | { |
| @@ -82,4 +82,4 @@ class ReliabilityController extends Controller | @@ -82,4 +82,4 @@ class ReliabilityController extends Controller | ||
| 82 | { | 82 | { |
| 83 | shell_exec("rrdtool update $arqRrd $date:$rly"); | 83 | shell_exec("rrdtool update $arqRrd $date:$rly"); |
| 84 | } | 84 | } |
| 85 | -} | ||
| 86 | \ No newline at end of file | 85 | \ No newline at end of file |
| 86 | +} |
Controller/RestController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -121,4 +121,4 @@ class RestController extends Controller | @@ -121,4 +121,4 @@ class RestController extends Controller | ||
| 121 | { | 121 | { |
| 122 | 122 | ||
| 123 | } | 123 | } |
| 124 | -} | ||
| 125 | \ No newline at end of file | 124 | \ No newline at end of file |
| 125 | +} |
Controller/RrdLogController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | ||
| 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 10 | 10 | ||
| 11 | -use GerenciadorRedes\Bundle\CocarBundle\Entity\Rrd; | 11 | +use Swpb\Bundle\CocarBundle\Entity\Rrd; |
| 12 | 12 | ||
| 13 | class RrdLogController extends Controller | 13 | class RrdLogController extends Controller |
| 14 | { | 14 | { |
Controller/SnmpController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -852,4 +852,4 @@ class SnmpController extends Controller | @@ -852,4 +852,4 @@ class SnmpController extends Controller | ||
| 852 | 852 | ||
| 853 | return "<B>$day</B>d <B>$hour</B>h <B>$minute</B>m e <B>$sec</B>s"; | 853 | return "<B>$day</B>d <B>$hour</B>h <B>$minute</B>m e <B>$sec</B>s"; |
| 854 | } | 854 | } |
| 855 | -} | ||
| 856 | \ No newline at end of file | 855 | \ No newline at end of file |
| 856 | +} |
Controller/SnmpWebController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -10,7 +10,7 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | @@ -10,7 +10,7 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | ||
| 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 11 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | 11 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 12 | 12 | ||
| 13 | -use GerenciadorRedes\Bundle\CocarBundle\Controller\SnmpController; | 13 | +use Swpb\Bundle\CocarBundle\Controller\SnmpController; |
| 14 | 14 | ||
| 15 | class SnmpWebController extends Controller | 15 | class SnmpWebController extends Controller |
| 16 | { | 16 | { |
| @@ -70,4 +70,4 @@ class SnmpWebController extends Controller | @@ -70,4 +70,4 @@ class SnmpWebController extends Controller | ||
| 70 | ->add('send', 'submit', array('label' => 'Enviar' )) | 70 | ->add('send', 'submit', array('label' => 'Enviar' )) |
| 71 | ->getForm(); | 71 | ->getForm(); |
| 72 | } | 72 | } |
| 73 | -} | ||
| 74 | \ No newline at end of file | 73 | \ No newline at end of file |
| 74 | +} |
Controller/StatusController.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -namespace GerenciadorRedes\Bundle\CocarBundle\Controller; | 3 | +namespace Swpb\Bundle\CocarBundle\Controller; |
| 4 | 4 | ||
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 6 | use Symfony\Component\HttpFoundation\Response; | 6 | use Symfony\Component\HttpFoundation\Response; |
| @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Response; | ||
| 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 10 | 10 | ||
| 11 | -use GerenciadorRedes\Bundle\CocarBundle\Controller\SnmpController; | 11 | +use Swpb\Bundle\CocarBundle\Controller\SnmpController; |
| 12 | 12 | ||
| 13 | class StatusController extends Controller | 13 | class StatusController extends Controller |
| 14 | { | 14 | { |
| @@ -79,4 +79,4 @@ class StatusController extends Controller | @@ -79,4 +79,4 @@ class StatusController extends Controller | ||
| 79 | return preg_match("/1/i", $status) ? "UP" : | 79 | return preg_match("/1/i", $status) ? "UP" : |
| 80 | (preg_match("/2/i", $status) ? "DOWN" : "INAT"); | 80 | (preg_match("/2/i", $status) ? "DOWN" : "INAT"); |
| 81 | } | 81 | } |
| 82 | -} | ||
| 83 | \ No newline at end of file | 82 | \ No newline at end of file |
| 83 | +} |