Commit 4d5612a2241c3dee75aa529a270a1463b12f3dd1

Authored by DTI
1 parent aeb43897
Exists in master and in 2 other branches 3,1, 3.1

altera namespace

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