Skip to content

Instantly share code, notes, and snippets.

Avatar

Nebojša Kamber nebkam

View GitHub Profile
View pipeline-error.log
2020-04-15T16:44:36.7334919Z ##[section]Starting: Request a runner to run this job
2020-04-15T16:44:37.7599294Z Requesting a hosted runner in current repository's account/organization with labels: 'ubuntu-latest', require runner match: True
2020-04-15T16:44:37.8710268Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job.
2020-04-15T16:44:37.9614304Z ##[section]Finishing: Request a runner to run this job
2020-04-15T16:44:45.3605946Z Current runner version: '2.169.0'
2020-04-15T16:44:45.3623691Z ##[group]Operating System
2020-04-15T16:44:45.3624192Z Ubuntu
2020-04-15T16:44:45.3624349Z 18.04.4
2020-04-15T16:44:45.3624482Z LTS
2020-04-15T16:44:45.3624614Z ##[endgroup]
View security-after.php
<?php
namespace App\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
class FooController
{
/**
* @Security("is_granted('ROLE_ADMIN') or is_granted('ROLE_SELLER')")
*/
View is-granted-before.php
<?php
namespace App\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
class FooController
{
/**
* @IsGranted({"ROLE_ADMIN", "ROLE_SELLER"})
*/
View api_client.php
<?php
class ApiClient
{
/**
* @return Project[]
*/
public function getProjects(): array
{
$projects = [];
View api_client.php
<?php
class ApiClient
{
/**
* @return Project[]
*/
public function getProjects(): array
{
$projects = [];
View embedded_form_type.php
<?php
namespace AppBundle\Form;
use AppBundle\Document\SchoolGrades;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class SchoolGradesType extends AbstractType
View framework_extra.yaml
sensio_framework_extra:
router:
annotations: false
View method_annotation_after.php
<?php
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
class UserController
{
/**
* @Route(path="/users", methods={"GET"})
View method_annotation_before.php
<?php
namespace App\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
class UserController
{
/**
View update_route_annotation.php
<?php
namespace App\Controller;
// Before
// use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
// After
use Symfony\Component\Routing\Annotation\Route;
You can’t perform that action at this time.