Popular posts from this blog
Symfony - Twig - How to check on instanceof class object
In Twig exist "constant" function that returns constant value, but if you set "class" in first parameter and object in second parameter, then function returns the fully qualified class name of an object. So we can use it in our case and compare it on class name that we want to check like "instanceof". Example: {% if constant('class', app.user) == 'User' %}{% endif %} Or with namespace: {% if constant('class', app.user) == 'EntityBundle\\Entity\\User' %}{% endif %}
How to add screenshot to App Store for your App
Warning! Use no transparency! Size resolutions: 6.7” Display > 1290 x 2796 pixels 6.5” Display > 1242 x 2688 pixels || 1284 x 2778 pixels 6.1” Display > 1179 x 2556 pixels 5.5” Display > 1242 x 2208 pixels 12.9" Display (2nd + 3rd gen) > 2048 x 2732 pixels Mac > 2880 x 1800 pixels Apple Watch > 396 x 484 pixels ----------------------------------------- 72 dpi, RGB, flattened High-quality JPEG or PNG image file format
Comments