<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Symfony Archives - Belchamber Web Tools, AI Guidance &amp; Code</title>
	<atom:link href="https://tools.belchamber.us/code-snippets/symfony/feed/" rel="self" type="application/rss+xml" />
	<link>https://tools.belchamber.us/code-snippets/symfony/</link>
	<description>Aaron Belchamber: AI-Centric Senior Cloud Software Engineer - Jacksonville FL</description>
	<lastBuildDate>Wed, 21 Feb 2024 19:13:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">99928718</site>	<item>
		<title>Rendering Twig templates from Symfony Repository without Using Dependency Injection (DIC)</title>
		<link>https://tools.belchamber.us/rendering-twig-templates-from-symfony-repository-without-using-dependency-injection-dic/</link>
					<comments>https://tools.belchamber.us/rendering-twig-templates-from-symfony-repository-without-using-dependency-injection-dic/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Thu, 04 Jul 2019 17:25:09 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Twig & Doctrine]]></category>
		<guid isPermaLink="false">https://tools.belchamber.us/?p=1171</guid>

					<description><![CDATA[<p>Sometimes it&#8217;s useful to access Twig templates from a Symfony repository, one could argue that this goes against a repository&#8217;s role, but if you think of Twig template files or Twig strings perhaps grabbed from a database as data, then this coincides nicely with the function of a repo. These arguments aside, whatever your situation, [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/rendering-twig-templates-from-symfony-repository-without-using-dependency-injection-dic/">Rendering Twig templates from Symfony Repository without Using Dependency Injection (DIC)</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/rendering-twig-templates-from-symfony-repository-without-using-dependency-injection-dic/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1171</post-id>	</item>
		<item>
		<title>Symfony: Re-authenticate FOS user automatically without making users log back in</title>
		<link>https://tools.belchamber.us/symfony-re-authenticate-fos-user-automatically-without-making-users-log-back-in/</link>
					<comments>https://tools.belchamber.us/symfony-re-authenticate-fos-user-automatically-without-making-users-log-back-in/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Sat, 23 Jan 2016 17:25:05 +0000</pubDate>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[FOS User Bundle]]></category>
		<category><![CDATA[symfony]]></category>
		<guid isPermaLink="false">https://tools.belchamber.us/?p=993</guid>

					<description><![CDATA[<p>Integrating a WordPress user login with Symfony is pretty painless if you need to share user sessions.  Just don&#8217;t rely solely on that WordPress cookie, but cross reference a randomly assigned hash that can reference back to the WordPress user&#8217;s table.  When you get your system to authenticate a user and you find your FOS [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/symfony-re-authenticate-fos-user-automatically-without-making-users-log-back-in/">Symfony: Re-authenticate FOS user automatically without making users log back in</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/symfony-re-authenticate-fos-user-automatically-without-making-users-log-back-in/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">993</post-id>	</item>
		<item>
		<title>Symfony: Forcing redirects in controller and specifying redirect type</title>
		<link>https://tools.belchamber.us/symfony-forcing-redirects-in-controller-and-specifying-redirect-type/</link>
					<comments>https://tools.belchamber.us/symfony-forcing-redirects-in-controller-and-specifying-redirect-type/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Tue, 22 Sep 2015 15:11:23 +0000</pubDate>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=942</guid>

					<description><![CDATA[<p>The Symfony documentation is getting better, but it still lacks more detail, which is why I&#8217;ve been collecting helpful tips and snippets here.  According to the Symfony docs, by default, the &#8220;redirectToRoute()" method performs a 302 (temporary) redirect, so in order to specify a 301 (permanent) redirect, you can add the third argument in this [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/symfony-forcing-redirects-in-controller-and-specifying-redirect-type/">Symfony: Forcing redirects in controller and specifying redirect type</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/symfony-forcing-redirects-in-controller-and-specifying-redirect-type/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">942</post-id>	</item>
		<item>
		<title>Latest Symfony version with standard Composer dependency settings that won&#8217;t break!</title>
		<link>https://tools.belchamber.us/latest-symfony-version-standard-composer-dependency-settings-wont-break/</link>
					<comments>https://tools.belchamber.us/latest-symfony-version-standard-composer-dependency-settings-wont-break/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Tue, 20 Jan 2015 03:57:44 +0000</pubDate>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=693</guid>

					<description><![CDATA[<p>The latest and greatest version of Symfony is so fresh, it&#8217;s just not ready for prime time &#8212; at least some of its standard dependency packages they call bundles!  I hope this saves other Sensio Labs Symfony framework users trouble because if you&#8217;re hoping for all new versions, you&#8217;re bound to run into the trouble.  [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/latest-symfony-version-standard-composer-dependency-settings-wont-break/">Latest Symfony version with standard Composer dependency settings that won&#8217;t break!</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/latest-symfony-version-standard-composer-dependency-settings-wont-break/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">693</post-id>	</item>
		<item>
		<title>Symfony Assetic troubleshooting with the LESS filter</title>
		<link>https://tools.belchamber.us/symfony-assetic-troubleshooting-less-filter/</link>
					<comments>https://tools.belchamber.us/symfony-assetic-troubleshooting-less-filter/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Sat, 10 Jan 2015 05:54:20 +0000</pubDate>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[assetic]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=690</guid>

					<description><![CDATA[<p>Installing Symfony doesn&#8217;t take long, but depending on your Composer capabilities on your web server, you may run into issues if you don&#8217;t install LESS and Node properly. Find the Node modules path by typing in the Linux command line: find / -name node_modules -type d Then set to the node_paths option: assetic: filters: less: node_paths: /usr/lib/node_modules [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/symfony-assetic-troubleshooting-less-filter/">Symfony Assetic troubleshooting with the LESS filter</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/symfony-assetic-troubleshooting-less-filter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">690</post-id>	</item>
		<item>
		<title>Setting a Doctrine query limit in Sensio Lab&#8217;s Symfony PHP framework for customer queries in respositories</title>
		<link>https://tools.belchamber.us/setting-doctrine-query-limit-sensio-labs-symfony-php-framework-customer-queries-respositories/</link>
					<comments>https://tools.belchamber.us/setting-doctrine-query-limit-sensio-labs-symfony-php-framework-customer-queries-respositories/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Thu, 01 Jan 2015 21:37:15 +0000</pubDate>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Doctrine]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=664</guid>

					<description><![CDATA[<p>Here is an example of a simple DQL query in a custom repository method meant to return a single array result. The following will return the latest result in case there are multiple contact records that match the &#8220;customerId&#8221; field, which is actually &#8220;customer_id&#8221; in the database, but remember that camelCase convention applies to Doctrine [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/setting-doctrine-query-limit-sensio-labs-symfony-php-framework-customer-queries-respositories/">Setting a Doctrine query limit in Sensio Lab&#8217;s Symfony PHP framework for customer queries in respositories</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/setting-doctrine-query-limit-sensio-labs-symfony-php-framework-customer-queries-respositories/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">664</post-id>	</item>
		<item>
		<title>PHP Symfony: Access the internationalization &#8220;locale&#8221;</title>
		<link>https://tools.belchamber.us/php-symfony-access-internationalization-locale/</link>
					<comments>https://tools.belchamber.us/php-symfony-access-internationalization-locale/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Thu, 01 Jan 2015 19:16:00 +0000</pubDate>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=659</guid>

					<description><![CDATA[<p>In your controller, you can access the special global &#8220;_locale&#8221; variable from the Request object: $request = $this-&#62;get('request'); $locale= $request-&#62;getLocale(); &#160;</p>
<p>The post <a href="https://tools.belchamber.us/php-symfony-access-internationalization-locale/">PHP Symfony: Access the internationalization &#8220;locale&#8221;</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/php-symfony-access-internationalization-locale/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">659</post-id>	</item>
		<item>
		<title>Accessing cookies directly in your Symfony Twig views</title>
		<link>https://tools.belchamber.us/accessing-cookies-directly-in-symfony-twig-views/</link>
					<comments>https://tools.belchamber.us/accessing-cookies-directly-in-symfony-twig-views/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Tue, 16 Dec 2014 03:03:06 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony tips]]></category>
		<category><![CDATA[twig]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=644</guid>

					<description><![CDATA[<p>In Symfony, cookies are stored in the app.request object. Here&#8217;s how you access them in Twig: To see if a cookie is set, use the if statement inside Twig:</p>
<p>The post <a href="https://tools.belchamber.us/accessing-cookies-directly-in-symfony-twig-views/">Accessing cookies directly in your Symfony Twig views</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/accessing-cookies-directly-in-symfony-twig-views/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">644</post-id>	</item>
		<item>
		<title>Symfony setting, adding or intercepting the public request object</title>
		<link>https://tools.belchamber.us/symfony-setting-adding-intercepting-public-request-object/</link>
					<comments>https://tools.belchamber.us/symfony-setting-adding-intercepting-public-request-object/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Sun, 23 Nov 2014 12:01:45 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Symfony]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=625</guid>

					<description><![CDATA[<p>In Symfony, you can alter the public request attribute from the $request object and set or add parameters. Example: $request->request->set("formField1", "value1"); $request->request->set("formField2", "value2"); You can also add new form fields and values with ->add: $request->request->add(array("formField1"=>"value1", "formField2"=>"value2"));</p>
<p>The post <a href="https://tools.belchamber.us/symfony-setting-adding-intercepting-public-request-object/">Symfony setting, adding or intercepting the public request object</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/symfony-setting-adding-intercepting-public-request-object/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">625</post-id>	</item>
		<item>
		<title>Symfony &#038; Doctrine:  Using try&#8230; catch to determine success or failure of database insert or update action</title>
		<link>https://tools.belchamber.us/symfony-doctrine-using-try-catch-determine-success-failure-database-insert-update-action/</link>
					<comments>https://tools.belchamber.us/symfony-doctrine-using-try-catch-determine-success-failure-database-insert-update-action/#respond</comments>
		
		<dc:creator><![CDATA[Aaron Belchamber]]></dc:creator>
		<pubDate>Thu, 23 Oct 2014 11:11:48 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Symfony]]></category>
		<guid isPermaLink="false">http://tools.belchamber.us/?p=630</guid>

					<description><![CDATA[<p>In Doctrine, there is no simple way to access the Doctrine object and get the status of the last attempt at inserting or updating the database. To overcome this glaring limitation of the DBAL (Database Abstraction Layer), we have to resort to older PHP techniques like using a try&#8230; catch condition. Seems like a lot [&#8230;]</p>
<p>The post <a href="https://tools.belchamber.us/symfony-doctrine-using-try-catch-determine-success-failure-database-insert-update-action/">Symfony &#038; Doctrine:  Using try&#8230; catch to determine success or failure of database insert or update action</a> appeared first on <a href="https://tools.belchamber.us">Belchamber Web Tools, AI Guidance &amp; Code</a>.</p>
]]></description>
		
					<wfw:commentRss>https://tools.belchamber.us/symfony-doctrine-using-try-catch-determine-success-failure-database-insert-update-action/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">630</post-id>	</item>
	</channel>
</rss>
