Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    El Azimov
    @0x450x6c

    @gudfar
    >

    ->where($qb->expr()->eq('m.movie', $movieQuery->getDQL()))
     ->andWhere($qb->expr()->eq('w.season', $seasonQuery->getDQL()))
    ->where($qb->expr()->eq('w.episode', $episodeQuery->getDQL()))

    Здесь две проблемы:
    1) where - стирает предыдущие where/andWhere секции
    2) Нужно использовать in вместо eq
    Должно быть так:

    ->where($qb->expr()->in('m.movie', $movieQuery->getDQL()))
     ->andWhere($qb->expr()->in('w.season', $seasonQuery->getDQL()))
    ->andWhere($qb->expr()->in('w.episode', $episodeQuery->getDQL()))
    nday
    @arx-nday

    ребят подскажите пеньку что с его кривыми руками нужно правильно написать потому что битый час не могу понять где и в чем туплю
    вот есть такая часть на странице

    <div class="t18">
    <b>20 польский злотый (PLN)</b> равняется <b>4.66 евро (EUR)</b>
    <br>
    <b>20 евро (EUR)</b> равняется <b>85.87 польский злотый (PLN)</b>
    <br>
    <div></div></div>

    на SimpleHTMLDOM все просто

        $price_pln_result = $price_pln_workflow->find('.t18',0);
        $price_pln_euro = $price_pln_result->find('b',1);

    и вот получил нужное поле с второго чайлда, а как это же провернуть в DomCrawler?
    что не напишу - ловлю то Fatal error: Uncaught InvalidArgumentException: The current node list is empty.
    то object of class Symfony\Component\DomCrawler\Crawler could not be converted to string
    как правильно выфильтровать домкравлером значение второго <b> тут?

    Norn
    @n0rn
    День добрый
    есть вопрос по симфони, я только наичнаю работать с фреймверком symfony
    возникла вот такая вот ошибка после удаления fos бандла, как её можно решить?
    Andriy Kravchuk
    @TaPTaK
    @n0rn пробуй почистить кеш симфы...
    Norn
    @n0rn
    @TaPTaK чистил
    Andriy Kravchuk
    @TaPTaK
    жестко руками удалить папку?
    Norn
    @n0rn
    да
    白俊遥
    @baijunyao
    Hi! I use $response->headers->set('Cache-Control’, ['max-age=0', 'must-revalidate']) methed set Cache-Control ; I hope the result is Cache-Control: max-age=0, must-revalidate ; But I get the result is Cache-Control: max-age=0, must-revalidate, private ; Why symfony have to add private ? thanks ;
    okyselov
    @okyselov
    @baijunyao Try $response->setPublic();
    白俊遥
    @baijunyao

    @okyselov Think you , but if use $response->setPublic(); the result is Cache-Control: max-age=0, must-revalidate, public, I hope the result is Cache-Control: max-age=0, must-revalidate , because

    "public" vs. "private"
    If the response is marked as "public", then it can be cached, even if it has HTTP authentication associated with it, and even when the response status code isn't normally cacheable. Most of the time, "public" isn't necessary, because explicit caching information (like "max-age") indicates that the response is cacheable anyway.
    By contrast, the browser can cache "private" responses. However, these responses are typically intended for a single user, so an intermediate cache is not allowed to cache them. For example, a user's browser can cache an HTML page with private user information, but a CDN can't cache the page.

    https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching

    Fares tayari
    @farestayari
    hey guys , anyone knows what this function can do ? stats_cdf_weibull() ?
    i have this error Attempted to call function "stats_cdfweibull" from namespace "App\Service".
    in phpstorm it sais undefined function
    and in the php manual there is no documentation on it
    Francisco Albert Albusac
    @tatitati
    People, I'm having this when deploying my app, however, it runs properly in my local:
    remote:        Script cache:clear returned with error code 255
    remote:        !!  PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "WebServerBundle" from namespace "Symfony\Bundle\WebServerBundle".
    Vitaly Gorbunov
    @cezar62882
    @tatitati because the symfony/web-server-bundle on require dev section, you need enable the bundle only on local env.
    Francisco Albert Albusac
    @tatitati
    thanks a lot
    Norn
    @n0rn
    День добрый, мб кто-то может посоветовать материал для изучения создания страницы авторизации на symfony 4? Я начал изучать symfony 4 делал вот по этому манула (https://symfony.com/doc/current/security/form_login_setup.html) но не работает. FOS не надо предлагать, нужно реализовать средствами symfony 4 для админ части использую sonata бандл
    Andriy Kravchuk
    @TaPTaK
    тут поживее чатик будет
    Grayw0lf
    @Grayw0lf
    как вариант не смотреть в сторону симфони
    arghlolrofl
    @arghlolrofl

    Hi all. I have a question: In my project, I have 2 Bundles (RestBundle1 and RestBundle2). Both of the bundles have a separate 'Resources/config/routing.yml'. Now, when defining a route, I want to tell symfony which controller to use. In the past (where we only had one single RestBundle) we did this by setting it to a value like 'RestBundle:Auth:postLogin'.

    Now (with RestBundle1 and RestBundle2) we want to define different controllers for each of the bundles. When trying to set it to 'RestBundle1:Auth:postLogin', my IDE tells me, that it is wrong. How should the controller value for e.g. RestBundle1 be?

    Serhii Dudchenko
    @jetsuit
    Всем привет, может у когото был опыт использования бандла Symfony OAuth Bundle (от knpUniversity) или hwi/HWIOAuthBundle ? Какой лучше заюзать ?
    Andriy Kravchuk
    @TaPTaK
    я юзал HWIOAuthBundle, шлак еще тот... вообще лучше ни то ни другое не юзать
    Job Schipper
    @desjob

    Question about symfony forms. Im trying to submit a form with a CollectionType field for a discriminated entity. When i set the "entry_type" option of the CollectionType, I can only specify 1 type (cannot be an AbstractType). Anybody know a way to do this?

    For example, I am submitting a form to create a Task (entity). A task can have 0 or more AbstractAssignee (discriminated entity), which can be PersonAssignee or TeamAssignee.

    Job Schipper
    @desjob
    100 iota's to anyone with a decent solution
    alexmixaylov
    @alexmixaylov

    Приветствую уважаемое сообщество
    один вопрос возник вообще не врублюсь куда копать - неочевидно

    обновляю сайт на сим 3.4, допиливаю некоторый функционал
    на локалке все ОК
    на тестовом сервере(nginx+php-fpm 7.2) выдает 500 ошибку

    FastCGI sent in stderr: "PHP message: PHP Warning: Illegal offset type in /var/www/taxi/html/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 79" while reading response header from upstream,$

    думаю что чего то не хватает, какого-то расширения (интуиция подсказывает :) , только не подсказывает какого)
    на локалке все ок при этом
    есть какие то соображения?

    Anton Lytvynov
    @alytvynov
    Добрый день community, кто-то уже развлекался с symfony & prooph & event sourcing ? начал погружаться, не все понятно, есть желающие посмотреть вместе ? сейчас ковыряюсь над вот этим примером https://github.com/prooph/proophessor-do-symfony
    Brooks Van Buren
    @brooksvb

    I'm using Symfony 4 and I have a shared hosting environment where my whole application is contained under examplesite.com/prefix/

    How can I configure Symfony to generate paths properly for this case? I have dug around through a lot of configuration and routing documentation but haven't had any luck.

    As it stands, it generates all paths without the /prefix/ everything breaks

    stacysimona
    @stacysimona

    Вакансия: #fulltime #remote #phpsymfony
    Компания: StarOfService
    Локация: удалённо
    Ставка: 1500-1800$

    Маркетплейс, микросервисы, enterprise, highload. Долгосрочно. Интересно.

    С чем придется работать: PHP / MySQL,REST API, Symfony

    Контакты: simonnastya@gmail.com

    Ghost
    @ghost~5e459d86d73408ce4fd99455
    Hello everybody! Does anyone of you have interest in a startup from Germany? We are looking for a CTO / a good backend developer! Just write an email with a "Yes" info@fifgo.com
    Very good knowledge of PHP (Symfony) is desired.
    Thanks!
    pal-crystal
    @pal-crystal
    hello why PhpStorm doesn't find prepare method in that code ?
            $em = $this->getDoctrine()->getManager();
            $bdd = $em->getConnection();
    
            $queryUsers = $bdd->prepare('SELECT * FROM stored_procedure()');
    MichaelAlex86
    @MichaelAlex86
    hello
    Rodrigo Toledo
    @dhodo
    Hi! Has someone used the library scheb/2fa for Symfony??
    Spaulspace
    @Spaulspace
    Guys, hello!
    I am a marketer for Webspace. I would like to do a little stuffing. If you or your friends need to develop an application or have ideas, then we are ready to help you in a short time (:
    More about our company here https://webspaceteam.com/
    Thanks a lot. Have a good day!
    Dima Sikorskiy
    @riddik200890
    привет всем. кто-то может подсказать, как правильно настроить твиг? очень низкая производительность
    Dmitriy Troyan
    @dtr0yan
    Привет, похоже нет тут жизни
    Matt
    @minorbug
    I am using custom functions in ExpressionLanguage, it I never have seen a good explanation of when to generate and use the compile string. In fact a lot of projects on GitHub that register their own functions leave the compile definition blank and only rely on the evaluation function to do work.
    Matt
    @minorbug
    if I want to say, evaluate 50-100 rules 20,000-100,000 times each, how can I use the compile function to speed execution?
    maria saxon
    @mariasaxon88_gitlab
    Hello Guys i need to know Cassandra and Php8 dont have any extension to communicate each other ?
    I used Php 8 and want to have a PECL extension to connect cassandra.Seems after php 7.2 .Cassandra and php8 become enemy each other
    Luigi
    @lkoell:matrix.xn--kll-sna.net
    [m]
    @mariasaxon88_gitlab: heyo, nowadays the PHP ecosystem is way broader than just the PECL extensions. composer is a manager for libraries written in PHP for php and a quick search found me some libraries you might be able to use: https://packagist.org/ (search for cassandra) - they will usually tell you which versions are compatible
    fairdev610
    @fairdev610
    Hi, I am a Symfony developer
    Matrix have desktop app?
    Rodrigo Toledo
    @dhodo
    Hi! I am using docker + symfony for local development but internet connection is needed after the containers are built, otherwise I get connection refused on the browser when I try to access. Anyone know why? Thanks!
    Hasan Baig
    @hasan4it
    hi
    need help for symfony sonata bundle