The Hungarian government has re-introduced controls on its border with Slovenia to stem the flow of migrants, a government spokesperson said Saturday.  

"Temporarily, in all aspects compatible with the Schengen regulations, Hungary has restored border controls on the Hungarian-Slovenian border," spokesman Zoltan Kovács said, according to Euronews. Hungarian authorities have already informed their Slovenian counterparts and the European Union of its decision.  

"This measure was needed due to this morning's events, as migrants directed from Croatia to Slovenia appeared close to the Redics border crossing point, on the other side," he added.

The re-introduction of border controls on the Slovenian side comes a day after Hungary closed its border with Croatia.

Migrants are now using the Slovenian route to reach Germany and Austria. Slovenian authorities said that they would keep their borders open as long as Germany and Austria continue to take migrants, according Radio Free Europe/Radio Liberty.

Around 2,700 migrants arrived in Slovenia from Croatia Saturday, BBC News reported. Hungary closed its southern border with Croatia Friday night as European Union members had failed to find a solution to Europe's worst migrant crisis since World War II.

"Hungary is determined to defend, by all means, its own and Europe's borders," said Kovacs, according to Bloomberg. "We need to put an end to thousands, hundreds of thousands of people arriving unidentified and in an uncontrolled manner into Europe through Hungary."

Hungary, which remained the most vocal critic of EU's migrant policies, is opposing a EU plan for fixing quotas for accepting 120,000 migrants among its member countries.