This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Framework\App; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; | |
class Container extends ContainerBuilder | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Load environment variables from file and init them | |
* | |
* @throws \Exception | |
*/ | |
private function initEnvironmentVars() | |
{ | |
$containerBuilder = new ContainerBuilder(); | |
$fileLocator = new FileLocator(__DIR__ . '/../../'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolver; | |
use Symfony\Component\Form\Extension\Core\Type\TextType; | |
use Symfony\Bridge\Doctrine\Form\Type\EntityType; | |
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Gedmo\Mapping\Annotation as Gedmo; | |
/** | |
* Carrier | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Front\Service; | |
use Api\Service\AuthService; | |
use Hybrid_User_Profile; | |
use Entity\User; | |
class HybridAuthService extends AuthService { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getEvaluationsAction(Request $request, $teachingGroupLessonMaterialId) | |
{ | |
$em = $this->getDoctrine()->getManager(); | |
$user = $this->getUser(); | |
$studentTeachingGroupLessonMaterialRepo = $em->getRepository(StudentTeachingGroupLessonMaterial::class); | |
$studentTeachingGroupLessonMaterialsOld = $studentTeachingGroupLessonMaterialRepo->getStudentsByTeachingGroupLessonMaterialIdAndTeacherId($teachingGroupLessonMaterialId, $user->getId()); | |
if (is_null($studentTeachingGroupLessonMaterialsOld)) { | |
throw $this->createNotFoundException(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\DoctrineExtensions\Postgres; | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
use Doctrine\ORM\Query\Lexer; | |
/** | |
* | |
*/ |